c# x in array code example
Example: c# check if array contains value
public static bool Contains(Array a, object val)
{
return Array.IndexOf(a, val) != -1;
}
public static bool Contains(Array a, object val)
{
return Array.IndexOf(a, val) != -1;
}