Strings In Depth5 / 18
Up next

Contains and friends

var s = "hello world";
Console.WriteLine(s.Contains("world"));
Console.WriteLine(s.StartsWith("hello"));
// IndexOf returns -1 when not found
Console.WriteLine(s.IndexOf('o'));
What you're solving

membership and search