Checks to see if value is part of a delimited list of values. Example: IsStringInList("value1,value2,value3","value3");
public static bool IsStringInList(string stringList, string valueToFind, char separator, bool ignoreCase)
Parameters
stringList
A list of delimited strings (ie. value1, value2, value3) with or without spaces (values are trimmed)
valueToFind
value to match against the list
separator
Character that separates the list values
ignoreCase
If true ignores case for the list value matches
See also:
Class StringUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic