c# search in a string code example
Example 1: how to look for substring in string in c#
String phrase = "this is the ultimate string";
Console.WriteLine(phrase.Contains("this")); //returns True
Console.WriteLine(phrase.Contains("python")); //returns False
Example 2: search letters in list c#
Length of the string is : 15