Question : string does not contain a definition for contains
Answered by : chris-zcv77jyna08n
There is an extension method System.Linq.Enumerable.Contains.
string[] is an IEnumerable<string> so you can use this.
Add "using System.Linq;" to the top of the file to use it.
Source : | Last Update : Tue, 24 May 22