Array.IndexOf

Sim
MSDN disse:
Return Value
Type: System..::.Int32
The index of the first occurrence of value within the range of elements in array that starts at startIndex and contains the number of elements specified in count, if found; otherwise, the lower bound of the array minus 1.

Since most arrays will have a lower bound of zero, this method would generally return –1 when value is not found. In the rare case that the lower bound of the array is equal to Int32..::.MinValue and value is not found, this method returns Int32..::.MaxValue, which is System.Int32.MinValue - 1.
@ http://msdn2.microsoft.com/en-us/library/5h020t0a.aspx
 
Última edição:
Boas, no caso de utilizares o Microsoft Visual Studio, podes consultar o help integrado, pois ajuda bastante quando existem dúvidas sobre métodos (entre outras coisas) de classes da plataforma .NET.
 
Back
Topo