Επεξεργασία

Κοινή χρήση μέσω


ImmutableSortedSet<T>.IndexOf(T) Method

Definition

Gets the position within this immutable sorted set that the specified value appears in.

public:
 virtual int IndexOf(T item);
public int IndexOf (T item);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer

Parameters

item
T

The value whose position is being sought.

Returns

The index of the specified item in the sorted set, if item is found. If item is not found and is less than one or more elements in this set, this method returns a negative number that is the bitwise complement of the index of the first element that is larger than value. If item is not found and is greater than any of the elements in the set, this method returns a negative number that is the bitwise complement of the index of the last element plus 1.

Implements

Remarks

System.Collections.Immutable NuGet package

About immutable collections and how to install

Applies to