Method
Contains checks whether the specified text contains the specified text or not is case-sensitive.
Method
Contains declared in the classroom
String
C#
string str1 = "Hello world!";
string str2 = "ello";
bool bFound = str1.Contains(str2);
// bFound = true
C#
string str1 = "Hello world!";
string str2 = "ELLO";
bool bFound = str1.Contains(str2);
// bFound = false