check if string contain substring - C# / C Sharp
I would do something like this: if (str.IndexOf(str2) == -1) ... IndexOf returns -1 it cannot find str2 in str1 Dave Hi! I would like to check if string contain specific substring. How to do it? P.S. I've done something stupid like String.Replace If str1s...