編輯

共用方式為


ImmutableArrayExtensions.SequenceEqual Method

Definition

Overloads

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

Determines whether two sequences are equal according to an equality comparer.

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

Determines whether two sequences are equal according to an equality comparer.

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

Determines whether two sequences are equal according to an equality comparer.

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

Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs

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

Type Parameters

TDerived

The type of element in the compared array.

TBase

The type of element contained by the collection.

Parameters

immutableArray
ImmutableArray<TBase>

The array to use for comparison.

items
IEnumerable<TDerived>

The items to use for comparison.

comparer
IEqualityComparer<TBase>

The comparer to use to check for equality.

Returns

true to indicate the sequences are equal; otherwise, false.

Applies to

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

Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs

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

Type Parameters

TDerived

The type of element in the compared array.

TBase

The type of element contained by the collection.

Parameters

immutableArray
ImmutableArray<TBase>

The array to use for comparison.

items
ImmutableArray<TDerived>

The items to use for comparison.

comparer
IEqualityComparer<TBase>

The comparer to use to check for equality.

Returns

true to indicate the sequences are equal; otherwise, false.

Applies to

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

Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs

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

Type Parameters

TDerived

The type of element in the compared array.

TBase

The type of element contained by the collection.

Parameters

immutableArray
ImmutableArray<TBase>

The array to use for comparison.

items
ImmutableArray<TDerived>

The items to use for comparison.

predicate
Func<TBase,TBase,Boolean>

The comparer to use to check for equality.

Returns

true to indicate the sequences are equal; otherwise, false.

Applies to