Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImmutableSortedSet<T>::IndexOf Method (T)

 

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

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
virtual int IndexOf(
	T item
) sealed

Parameters

item
Type: T

The value whose position is being sought.

Return Value

Type: System::Int32

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.

Return to top
Show:
© 2017 Microsoft