ImmutableList.LastIndexOf メソッド

定義

オーバーロード

名前 説明
LastIndexOf<T>(IImmutableList<T>, T)

指定したオブジェクトを検索し、変更できないリスト全体で最後に出現した 0 から始まるインデックスを返します。

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

指定したオブジェクトを検索し、変更できないリスト全体で最後に出現した 0 から始まるインデックスを返します。

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

指定したオブジェクトを検索し、最初の要素から指定したインデックスに拡張される変更できないリスト内の要素の範囲内で最後に出現した位置の 0 から始まるインデックスを返します。

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

指定したオブジェクトを検索し、最初の要素から指定したインデックスに拡張される変更できないリスト内の要素の範囲内で最後に出現した位置の 0 から始まるインデックスを返します。

LastIndexOf<T>(IImmutableList<T>, T)

ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs

指定したオブジェクトを検索し、変更できないリスト全体で最後に出現した 0 から始まるインデックスを返します。

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

型パラメーター

T

リスト内の項目の種類。

パラメーター

list
IImmutableList<T>

検索するリスト。

item
T

不変リスト内で検索するオブジェクト。 参照型の場合、値は null にすることができます。

返品

不変リスト全体内で最後に出現した項目の 0 から始まるインデックス (見つかった場合)。それ以外の場合は -1。

適用対象

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

ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs

指定したオブジェクトを検索し、変更できないリスト全体で最後に出現した 0 から始まるインデックスを返します。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static int LastIndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
static member LastIndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * System.Collections.Generic.IEqualityComparer<'T> -> int
<Extension()>
Public Function LastIndexOf(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。

適用対象

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

ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs

指定したオブジェクトを検索し、最初の要素から指定したインデックスに拡張される変更できないリスト内の要素の範囲内で最後に出現した位置の 0 から始まるインデックスを返します。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static int LastIndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex);
static member LastIndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int -> int
<Extension()>
Public Function LastIndexOf(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 から始まるインデックス。それ以外の場合は -1。

適用対象

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

ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs
ソース:
ImmutableList.cs

指定したオブジェクトを検索し、最初の要素から指定したインデックスに拡張される変更できないリスト内の要素の範囲内で最後に出現した位置の 0 から始まるインデックスを返します。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static int LastIndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex, int count);
public static int LastIndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex, int count);
static member LastIndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int * int -> int
<Extension()>
Public Function LastIndexOf(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 から始まる開始インデックス。

count
Int32

検索するセクション内の要素の数。

返品

見つかった場合、最初の要素からインデックスに拡張される不変リスト内の要素の範囲内で項目が最後に出現する 0 から始まるインデックス。それ以外の場合は -1。

適用対象