ImmutableSortedSet<T>.Builder.IndexOf(T) Method
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
- item
- T
The value to locate within the set.
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).
Product | Versions |
---|---|
.NET | 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: