MemoryExtensions.LastIndexOfAny MemoryExtensions.LastIndexOfAny MemoryExtensions.LastIndexOfAny MemoryExtensions.LastIndexOfAny Method

定義

オーバーロード

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

LastIndexOfAny<T>(Span<T>, T, T, T) LastIndexOfAny<T>(Span<T>, T, T, T) LastIndexOfAny<T>(Span<T>, T, T, T) LastIndexOfAny<T>(Span<T>, T, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

LastIndexOfAny<T>(Span<T>, T, T) LastIndexOfAny<T>(Span<T>, T, T) LastIndexOfAny<T>(Span<T>, T, T) LastIndexOfAny<T>(Span<T>, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static int LastIndexOfAny(ReadOnlySpan<T> span, T value0, T value1, T value2);
public static int LastIndexOfAny<T> (this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member LastIndexOfAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function LastIndexOfAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value0 As T, value1 As T, value2 As T) As Integer

型パラメーター

T

スパンと値の型。The type of the span and values.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

検索するスパン。The span to search.

value0

検索対象の値の 1 つ。One of the values to search for.

value1

検索対象の値の 1 つ。One of the values to search for.

value2

検索対象の値の 1 つ。One of the values to search for.

戻り値

スパン内でいずれかの値が最後に出現する位置のインデックス。The index of the last occurrence of any of the values in the span. 見つからない場合は、-1 を返します。If not found, returns -1.

LastIndexOfAny<T>(Span<T>, T, T, T) LastIndexOfAny<T>(Span<T>, T, T, T) LastIndexOfAny<T>(Span<T>, T, T, T) LastIndexOfAny<T>(Span<T>, T, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static int LastIndexOfAny(Span<T> span, T value0, T value1, T value2);
public static int LastIndexOfAny<T> (this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member LastIndexOfAny : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function LastIndexOfAny(Of T As IEquatable(Of T)) (span As Span(Of T), value0 As T, value1 As T, value2 As T) As Integer

型パラメーター

T

スパンと値の型。The type of the span and values.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

検索するスパン。The span to search.

value0

検索対象の値の 1 つ。One of the values to search for.

value1

検索対象の値の 1 つ。One of the values to search for.

value2

検索対象の値の 1 つ。One of the values to search for.

戻り値

スパン内でいずれかの値が最後に出現する位置のインデックス。The index of the last occurrence of any of the values in the span. 見つからない場合は、-1 を返します。If not found, returns -1.

LastIndexOfAny<T>(Span<T>, T, T) LastIndexOfAny<T>(Span<T>, T, T) LastIndexOfAny<T>(Span<T>, T, T) LastIndexOfAny<T>(Span<T>, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static int LastIndexOfAny(Span<T> span, T value0, T value1);
public static int LastIndexOfAny<T> (this Span<T> span, T value0, T value1) where T : IEquatable<T>;
static member LastIndexOfAny : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function LastIndexOfAny(Of T As IEquatable(Of T)) (span As Span(Of T), value0 As T, value1 As T) As Integer

型パラメーター

T

スパンと値の型。The type of the span and values.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

検索するスパン。The span to search.

value0

検索対象の値の 1 つ。One of the values to search for.

value1

検索対象の値の 1 つ。One of the values to search for.

戻り値

スパン内でいずれかの値が最後に出現する位置のインデックス。The index of the last occurrence of any of the values in the span. 見つからない場合は、-1 を返します。If not found, returns -1.

LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static int LastIndexOfAny(Span<T> span, ReadOnlySpan<T> values);
public static int LastIndexOfAny<T> (this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member LastIndexOfAny : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function LastIndexOfAny(Of T As IEquatable(Of T)) (span As Span(Of T), values As ReadOnlySpan(Of T)) As Integer

型パラメーター

T

スパンと値の型。The type of the span and values.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

検索するスパン。The span to search.

values
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

検索対象の値のセット。The set of values to search for.

戻り値

スパン内でいずれかの値が最後に出現する位置のインデックス。The index of the last occurrence of any of the values in the span. 見つからない場合は、-1 を返します。If not found, returns -1.

LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static int LastIndexOfAny(ReadOnlySpan<T> span, ReadOnlySpan<T> values);
public static int LastIndexOfAny<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member LastIndexOfAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function LastIndexOfAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), values As ReadOnlySpan(Of T)) As Integer

型パラメーター

T

スパンと値の型。The type of the span and values.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

検索するスパン。The span to search.

values
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

検索対象の値のセット。The set of values to search for.

戻り値

スパン内でいずれかの値が最後に出現する位置のインデックス。The index of the last occurrence of any of the values in the span. 見つからない場合は、-1 を返します。If not found, returns -1.

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T) LastIndexOfAny<T>(ReadOnlySpan<T>, T, T)

論理 OR 演算子で LastIndexOf を数回呼び出すのと同様に、指定された値のいずれかの最後のインデックスを検索します。Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static int LastIndexOfAny(ReadOnlySpan<T> span, T value0, T value1);
public static int LastIndexOfAny<T> (this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>;
static member LastIndexOfAny : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> int (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function LastIndexOfAny(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value0 As T, value1 As T) As Integer

型パラメーター

T

スパンと値の型。The type of the span and values.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

検索するスパン。The span to search.

value0

検索対象の値の 1 つ。One of the values to search for.

value1

検索対象の値の 1 つ。One of the values to search for.

戻り値

スパン内でいずれかの値が最後に出現する位置のインデックス。The index of the last occurrence of any of the values in the span. 見つからない場合は、-1 を返します。If not found, returns -1.

適用対象