String Does Not Contain A Definition For Contains

[Solved] String Does Not Contain A Definition For Contains | Swift - Code Explorer | yomemimo.com
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

Answers related to string does not contain a definition for contains

Code Explorer Popular Question For Swift