c# if array contains item with id 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;
}