How can I check if a string exists in another string
IndexOf()
function will do the work...
It will return -1 if the string does not exist
Use String.Contains:
if (stringValue.Contains(anotherStringValue))
{
// Do Something //
}
IndexOf()
function will do the work...
It will return -1 if the string does not exist
Use String.Contains:
if (stringValue.Contains(anotherStringValue))
{
// Do Something //
}