ImmutableSortedSet<T>.Builder.IndexOf(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for the first index within this set that the specified value is contained.
public:
int IndexOf(T item);
public int IndexOf (T item);
member this.IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer
Parameters
- item
- T
The value to locate within the set.
Returns
The index of the specified item
in the sorted set, if item
is found. If item
is not found and item
is less than one or more elements in this set, returns a negative number that is the bitwise complement of the index of the first element that's larger than item
. If item
is not found and item
is greater than any of the elements in the set, returns a negative number that is the bitwise complement of (the index of the last element plus 1).