Uređivanje

Dijeli putem


ImmutableArray<T>.Builder.IndexOf Method

Definition

Overloads

IndexOf(T)

Determines the index of a specific item in the array.

IndexOf(T, Int32)

Determines the index of the specified item.

IndexOf(T, Int32, IEqualityComparer<T>)

Searches the array for the specified item.

IndexOf(T, Int32, Int32)

Determines the index of the specified item.

IndexOf(T, Int32, Int32, IEqualityComparer<T>)

Determines the index for the specified item.

IndexOf(T)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Determines the index of a specific item in the array.

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 item to locate in the array.

Returns

The index of item if it's found in the list; otherwise, -1.

Implements

Applies to

IndexOf(T, Int32)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Determines the index of the specified item.

public:
 int IndexOf(T item, int startIndex);
public int IndexOf (T item, int startIndex);
member this.IndexOf : 'T * int -> int
Public Function IndexOf (item As T, startIndex As Integer) As Integer

Parameters

item
T

The item to locate in the array.

startIndex
Int32

The starting position of the search.

Returns

The index of item if it's found in the list; otherwise, -1.

Applies to

IndexOf(T, Int32, IEqualityComparer<T>)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Searches the array for the specified item.

public:
 int IndexOf(T item, int startIndex, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int IndexOf (T item, int startIndex, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.IndexOf : 'T * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function IndexOf (item As T, startIndex As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer

Parameters

item
T

The item to search for.

startIndex
Int32

The index at which to begin the search.

equalityComparer
IEqualityComparer<T>

The equality comparer to use in the search. If null, Default is used.

Returns

The 0-based index into the array where the item was found; or -1 if it could not be found.

Applies to

IndexOf(T, Int32, Int32)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Determines the index of the specified item.

public:
 int IndexOf(T item, int startIndex, int count);
public int IndexOf (T item, int startIndex, int count);
member this.IndexOf : 'T * int * int -> int
Public Function IndexOf (item As T, startIndex As Integer, count As Integer) As Integer

Parameters

item
T

The item to locate in the array.

startIndex
Int32

The starting position of the search.

count
Int32

The number of elements to search.

Returns

The index of item if it's found in the list; otherwise, -1.

Applies to

IndexOf(T, Int32, Int32, IEqualityComparer<T>)

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Determines the index for the specified item.

public:
 int IndexOf(T item, int startIndex, int count, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int IndexOf (T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int IndexOf (T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.IndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function IndexOf (item As T, startIndex As Integer, count As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer

Parameters

item
T

The item to locate in the array.

startIndex
Int32

The index at which to begin the search.

count
Int32

The starting position of the search.

equalityComparer
IEqualityComparer<T>

The equality comparer to use in the search.

Returns

The index of item if it's found in the list; otherwise, -1.

Applies to