G
Guest
Hi,
String.IndexOf is case sensitive so I need to covert to lower before testing
the string contains a given string. In VB this is:
Instr(Lcase(StringToTest, "StringToCheckFor"))
What is the C# equivilent? The closest I've comeup with is:
string lowerString = testString.ToLower();
lowerString.IndexOf("checkstring")
Thanks,
Mike
String.IndexOf is case sensitive so I need to covert to lower before testing
the string contains a given string. In VB this is:
Instr(Lcase(StringToTest, "StringToCheckFor"))
What is the C# equivilent? The closest I've comeup with is:
string lowerString = testString.ToLower();
lowerString.IndexOf("checkstring")
Thanks,
Mike