AtlasPlugin.TpsFileSave.IndexIn C# (CSharp) Method

IndexIn() public static method

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;

        }