ReadOnlyCollection<T>.IList.IndexOf Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines the index of a specific item in the IList.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ArgumentException | value is not of the type specified for the generic type parameter T. |
This method determines equality using the default comparer EqualityComparer<T>.Default.
This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.
Show: