where contains c# code example
Example 1: c# Contains()
string word = "Hello";
word.Contains("ello"); // This is true, because "Hello" contains "ello"
word.Contains("Mars"); // This is false, because "Hello" do no contains "Mars"
Example 2: c# string contains
var str = "a string to search in";
bool isIn = str.Contains("a string");