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"
bool b = s1.Contains("myString");
var str = "a string to search in";
bool isIn = str.Contains("a string");
public bool Contains (char value);
public bool Contains (string value);
public bool Contains (char value, StringComparison comparisonType);
public bool Contains (string value, StringComparison comparisonType);
//ex
string s1 = "The quick brown fox jumps over the lazy dog";
string s2 = "fox";
bool b = s1.Contains(s2);