How to use Contains in Collection in C# code example Example: c# string contains bool b = s1.Contains("myString");