ArrayList.FindString Method

Returns the index for the first occurrence of the provided string. If the string cannot be located, -1 will be returned.

int FindString(const char[] item)

Parameters

const char[] item

String to search for

Return Value

Array index, or -1 on failure