ImmutableList.IndexOf 메서드

정의

오버로드

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

지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

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

지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

IndexOf<T>(IImmutableList<T>, T)

지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

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

지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

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

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex);
public static int IndexOf<T> (this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T, startIndex As Integer) As Integer

형식 매개 변수

T

목록에 있는 항목의 형식입니다.

매개 변수

list
IImmutableList<T>

검색할 목록입니다.

item
T

변경할 수 없는 목록에서 찾을 개체입니다. 참조 형식의 경우 값은 null일 수 있습니다.

startIndex
Int32

검색의 0부터 시작하는 인덱스입니다. 0은 빈 목록에서 유효합니다.

반환

인덱스에서 마지막 요소까지 확장하는 변경할 수 없는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.

적용 대상

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

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex, int count);
public static int IndexOf<T> (this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex, int count);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int * int -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T, startIndex As Integer, count As Integer) As Integer

형식 매개 변수

T

목록에 있는 항목의 형식입니다.

매개 변수

list
IImmutableList<T>

검색할 목록입니다.

item
T

변경할 수 없는 목록에서 찾을 개체입니다. 참조 형식의 경우 값은 null일 수 있습니다.

startIndex
Int32

검색의 0부터 시작하는 인덱스입니다. 0은 빈 목록에서 유효합니다.

count
Int32

검색할 섹션에 있는 요소 수입니다.

반환

인덱스에서 마지막 요소까지 확장하는 변경할 수 없는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.

적용 대상

IndexOf<T>(IImmutableList<T>, T)

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item);
public static int IndexOf<T> (this System.Collections.Immutable.IImmutableList<T> list, T item);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T) As Integer

형식 매개 변수

T

목록에 있는 항목의 형식입니다.

매개 변수

list
IImmutableList<T>

검색할 목록입니다.

item
T

목록에서 찾을 개체입니다. 참조 형식의 경우 값은 null일 수 있습니다.

반환

인덱스에서 마지막 요소까지 확장하는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.

적용 대상

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

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public static int IndexOf<T> (this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public static int IndexOf<T> (this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * System.Collections.Generic.IEqualityComparer<'T> -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T, equalityComparer As IEqualityComparer(Of T)) As Integer

형식 매개 변수

T

목록에 있는 항목의 형식입니다.

매개 변수

list
IImmutableList<T>

검색할 목록입니다.

item
T

변경할 수 없는 목록에서 찾을 개체입니다. 참조 형식의 경우 값은 null일 수 있습니다.

equalityComparer
IEqualityComparer<T>

검색에서 사용할 같음 비교자입니다.

반환

인덱스에서 마지막 요소까지 확장하는 변경할 수 없는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.

적용 대상