public static IndexIn ( string value, object objects ) : int | ||
value | string | |
objects | object | |
return | int |
public static int IndexIn(string value, object[] objects)
{
for (int i = 0; i < objects.Length; i++)
{
if (objects[i] is string && (objects[i] as string) == value)
{
return i;
}
}
return -1;
}