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).
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應