ImmutableList.IndexOf 메서드
정의
오버로드
IndexOf<T>(IImmutableList<T>, T, Int32) |
지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element. |
IndexOf<T>(IImmutableList<T>, T, Int32, Int32) |
지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element. |
IndexOf<T>(IImmutableList<T>, T) |
지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the list. |
IndexOf<T>(IImmutableList<T>, T, IEqualityComparer<T>) |
지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the list. |
IndexOf<T>(IImmutableList<T>, T, Int32)
지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
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
목록에 있는 항목의 형식입니다.The type of items in the list.
매개 변수
- list
- IImmutableList<T>
검색할 목록입니다.The list to search.
- item
- T
변경할 수 없는 목록에서 찾을 개체입니다.The object to locate in the Immutable list. 참조 형식의 경우 값은 null일 수 있습니다.The value can be null for reference types.
- startIndex
- Int32
검색의 0부터 시작하는 인덱스입니다.The zero-based starting index of the search. 0은 빈 목록에서 유효합니다.0 (zero) is valid in an empty list.
반환
인덱스에서 마지막 요소까지 확장하는 변경할 수 없는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.The zero-based index of the first occurrence of item within the range of elements in the Immutable list that extends from index to the last element, if found; otherwise, -1.
적용 대상
IndexOf<T>(IImmutableList<T>, T, Int32, Int32)
지정된 개체를 검색하고, 지정된 인덱스에서 마지막 요소로 확장하는 변경할 수 없는 목록의 요소 범위 내에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
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
목록에 있는 항목의 형식입니다.The type of items in the list.
매개 변수
- list
- IImmutableList<T>
검색할 목록입니다.The list to search.
- item
- T
변경할 수 없는 목록에서 찾을 개체입니다.The object to locate in the Immutable list. 참조 형식의 경우 값은 null일 수 있습니다.The value can be null for reference types.
- startIndex
- Int32
검색의 0부터 시작하는 인덱스입니다.The zero-based starting index of the search. 0은 빈 목록에서 유효합니다.0 (zero) is valid in an empty list.
- count
- Int32
검색할 섹션에 있는 요소 수입니다.The number of elements in the section to search.
반환
인덱스에서 마지막 요소까지 확장하는 변경할 수 없는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.The zero-based index of the first occurrence of item within the range of elements in the Immutable list that extends from index to the last element, if found; otherwise, -1.
적용 대상
IndexOf<T>(IImmutableList<T>, T)
지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the list.
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
목록에 있는 항목의 형식입니다.The type of items in the list.
매개 변수
- list
- IImmutableList<T>
검색할 목록입니다.The list to search.
- item
- T
목록에서 찾을 개체입니다.The object to locate in the list. 참조 형식의 경우 값은 null일 수 있습니다.The value can be null for reference types.
반환
인덱스에서 마지막 요소까지 확장하는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.The zero-based index of the first occurrence of item within the range of elements in the list that extends from index to the last element, if found; otherwise, -1.
적용 대상
IndexOf<T>(IImmutableList<T>, T, IEqualityComparer<T>)
지정된 개체를 검색하고, 목록에서 첫 번째로 나타나는 개체의 0부터 시작하는 인덱스를 반환합니다.Searches for the specified object and returns the zero-based index of the first occurrence within the list.
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
목록에 있는 항목의 형식입니다.The type of items in the list.
매개 변수
- list
- IImmutableList<T>
검색할 목록입니다.The list to search.
- item
- T
변경할 수 없는 목록에서 찾을 개체입니다.The object to locate in the Immutable list. 참조 형식의 경우 값은 null일 수 있습니다.The value can be null for reference types.
- equalityComparer
- IEqualityComparer<T>
검색에서 사용할 같음 비교자입니다.The equality comparer to use in the search.
반환
인덱스에서 마지막 요소까지 확장하는 변경할 수 없는 목록의 요소 범위 내에서 항목이 있으면 처음으로 나타나는 개체의 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.The zero-based index of the first occurrence of item within the range of elements in the immutable list that extends from index to the last element, if found; otherwise, -1.