Using C# to check if string contains a string in string array
- by aspdotnetuser
Hi,
I want to use C# to check if a string value contains a word in a string array. For example,
string stringToCheck = "text1text2text3";
string[] stringArray = ("text1", etc... )
if(stringToCheck.contains stringArray( //one of the items?
{
}
How can I check if the string value for 'stringToCheck' contains a word in the string array?
Thanks,