ImmutableArrayExtensions.SequenceEqual Método

Definición

Sobrecargas

SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, IEnumerable<TDerived>, IEqualityComparer<TBase>)

Determina si dos secuencias son iguales según un comparador de igualdad.Determines whether two sequences are equal according to an equality comparer.

SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, IEqualityComparer<TBase>)

Determina si dos secuencias son iguales según un comparador de igualdad.Determines whether two sequences are equal according to an equality comparer.

SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, Func<TBase,TBase,Boolean>)

Determina si dos secuencias son iguales según un comparador de igualdad.Determines whether two sequences are equal according to an equality comparer.

SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, IEnumerable<TDerived>, IEqualityComparer<TBase>)

Determina si dos secuencias son iguales según un comparador de igualdad.Determines whether two sequences are equal according to an equality comparer.

public static bool SequenceEqual<TDerived,TBase> (this System.Collections.Immutable.ImmutableArray<TBase> immutableArray, System.Collections.Generic.IEnumerable<TDerived> items, System.Collections.Generic.IEqualityComparer<TBase> comparer = default) where TDerived : TBase;
public static bool SequenceEqual<TDerived,TBase> (this System.Collections.Immutable.ImmutableArray<TBase> immutableArray, System.Collections.Generic.IEnumerable<TDerived> items, System.Collections.Generic.IEqualityComparer<TBase>? comparer = default) where TDerived : TBase;
static member SequenceEqual : System.Collections.Immutable.ImmutableArray<'Base> * seq<#'Base> * System.Collections.Generic.IEqualityComparer<'Base> -> bool
<Extension()>
Public Function SequenceEqual(Of TDerived As TBase, TBase As TBase) (immutableArray As ImmutableArray(Of TBase), items As IEnumerable(Of TDerived), Optional comparer As IEqualityComparer(Of TBase) = Nothing) As Boolean

Parámetros de tipo

TDerived

Tipo de elemento de la matriz comparada.The type of element in the compared array.

TBase

Tipo de elemento incluido en la colección.The type of element contained by the collection.

Parámetros

immutableArray
ImmutableArray<TBase>

Matriz que se va a utilizar para la comparación.The array to use for comparison.

items
IEnumerable<TDerived>

Elementos que se van a utilizar para la comparación.The items to use for comparison.

comparer
IEqualityComparer<TBase>

Comparador que se va a utilizar para comprobar la igualdad.The comparer to use to check for equality.

Devoluciones

Boolean

true para indicar que las secuencias son iguales; de lo contrario, false.true to indicate the sequences are equal; otherwise, false.

Se aplica a

SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, IEqualityComparer<TBase>)

Determina si dos secuencias son iguales según un comparador de igualdad.Determines whether two sequences are equal according to an equality comparer.

public static bool SequenceEqual<TDerived,TBase> (this System.Collections.Immutable.ImmutableArray<TBase> immutableArray, System.Collections.Immutable.ImmutableArray<TDerived> items, System.Collections.Generic.IEqualityComparer<TBase> comparer = default) where TDerived : TBase;
public static bool SequenceEqual<TDerived,TBase> (this System.Collections.Immutable.ImmutableArray<TBase> immutableArray, System.Collections.Immutable.ImmutableArray<TDerived> items, System.Collections.Generic.IEqualityComparer<TBase>? comparer = default) where TDerived : TBase;
static member SequenceEqual : System.Collections.Immutable.ImmutableArray<'Base> * System.Collections.Immutable.ImmutableArray<#'Base> * System.Collections.Generic.IEqualityComparer<'Base> -> bool
<Extension()>
Public Function SequenceEqual(Of TDerived As TBase, TBase As TBase) (immutableArray As ImmutableArray(Of TBase), items As ImmutableArray(Of TDerived), Optional comparer As IEqualityComparer(Of TBase) = Nothing) As Boolean

Parámetros de tipo

TDerived

Tipo de elemento de la matriz comparada.The type of element in the compared array.

TBase

Tipo de elemento incluido en la colección.The type of element contained by the collection.

Parámetros

immutableArray
ImmutableArray<TBase>

Matriz que se va a utilizar para la comparación.The array to use for comparison.

items
ImmutableArray<TDerived>

Elementos que se van a utilizar para la comparación.The items to use for comparison.

comparer
IEqualityComparer<TBase>

Comparador que se va a utilizar para comprobar la igualdad.The comparer to use to check for equality.

Devoluciones

Boolean

true para indicar que las secuencias son iguales; de lo contrario, false.true to indicate the sequences are equal; otherwise, false.

Se aplica a

SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, Func<TBase,TBase,Boolean>)

Determina si dos secuencias son iguales según un comparador de igualdad.Determines whether two sequences are equal according to an equality comparer.

public:
generic <typename TDerived, typename TBase>
 where TDerived : TBase[System::Runtime::CompilerServices::Extension]
 static bool SequenceEqual(System::Collections::Immutable::ImmutableArray<TBase> immutableArray, System::Collections::Immutable::ImmutableArray<TDerived> items, Func<TBase, TBase, bool> ^ predicate);
public static bool SequenceEqual<TDerived,TBase> (this System.Collections.Immutable.ImmutableArray<TBase> immutableArray, System.Collections.Immutable.ImmutableArray<TDerived> items, Func<TBase,TBase,bool> predicate) where TDerived : TBase;
static member SequenceEqual : System.Collections.Immutable.ImmutableArray<'Base> * System.Collections.Immutable.ImmutableArray<#'Base> * Func<'Base, 'Base, bool> -> bool
<Extension()>
Public Function SequenceEqual(Of TDerived As TBase, TBase As TBase) (immutableArray As ImmutableArray(Of TBase), items As ImmutableArray(Of TDerived), predicate As Func(Of TBase, TBase, Boolean)) As Boolean

Parámetros de tipo

TDerived

Tipo de elemento de la matriz comparada.The type of element in the compared array.

TBase

Tipo de elemento incluido en la colección.The type of element contained by the collection.

Parámetros

immutableArray
ImmutableArray<TBase>

Matriz que se va a utilizar para la comparación.The array to use for comparison.

items
ImmutableArray<TDerived>

Elementos que se van a utilizar para la comparación.The items to use for comparison.

predicate
Func<TBase,TBase,Boolean>

Comparador que se va a utilizar para comprobar la igualdad.The comparer to use to check for equality.

Devoluciones

Boolean

true para indicar que las secuencias son iguales; de lo contrario, false.true to indicate the sequences are equal; otherwise, false.

Se aplica a