ImmutableArrayExtensions.SequenceEqual Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, IEnumerable<TDerived>, IEqualityComparer<TBase>) |
Menentukan apakah dua urutan sama menurut perbandingan kesetaraan. |
SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, IEqualityComparer<TBase>) |
Menentukan apakah dua urutan sama menurut perbandingan kesetaraan. |
SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, Func<TBase,TBase,Boolean>) |
Menentukan apakah dua urutan sama menurut perbandingan kesetaraan. |
SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, IEnumerable<TDerived>, IEqualityComparer<TBase>)
- Sumber:
- ImmutableArrayExtensions.cs
- Sumber:
- ImmutableArrayExtensions.cs
- Sumber:
- ImmutableArrayExtensions.cs
Menentukan apakah dua urutan sama menurut perbandingan kesetaraan.
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
Jenis parameter
- TDerived
Jenis elemen dalam array yang dibandingkan.
- TBase
Jenis elemen yang dimuat oleh koleksi.
Parameter
- immutableArray
- ImmutableArray<TBase>
Array yang digunakan untuk perbandingan.
- items
- IEnumerable<TDerived>
Item yang digunakan untuk perbandingan.
- comparer
- IEqualityComparer<TBase>
Pembanding yang digunakan untuk memeriksa kesetaraan.
Mengembalikan
true
untuk menunjukkan urutannya sama; jika tidak, false
.
Berlaku untuk
SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, IEqualityComparer<TBase>)
- Sumber:
- ImmutableArrayExtensions.cs
- Sumber:
- ImmutableArrayExtensions.cs
- Sumber:
- ImmutableArrayExtensions.cs
Menentukan apakah dua urutan sama menurut perbandingan kesetaraan.
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
Jenis parameter
- TDerived
Jenis elemen dalam array yang dibandingkan.
- TBase
Jenis elemen yang dimuat oleh koleksi.
Parameter
- immutableArray
- ImmutableArray<TBase>
Array yang digunakan untuk perbandingan.
- items
- ImmutableArray<TDerived>
Item yang digunakan untuk perbandingan.
- comparer
- IEqualityComparer<TBase>
Pembanding yang digunakan untuk memeriksa kesetaraan.
Mengembalikan
true
untuk menunjukkan urutannya sama; jika tidak, false
.
Berlaku untuk
SequenceEqual<TDerived,TBase>(ImmutableArray<TBase>, ImmutableArray<TDerived>, Func<TBase,TBase,Boolean>)
- Sumber:
- ImmutableArrayExtensions.cs
- Sumber:
- ImmutableArrayExtensions.cs
- Sumber:
- ImmutableArrayExtensions.cs
Menentukan apakah dua urutan sama menurut perbandingan kesetaraan.
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
Jenis parameter
- TDerived
Jenis elemen dalam array yang dibandingkan.
- TBase
Jenis elemen yang dimuat oleh koleksi.
Parameter
- immutableArray
- ImmutableArray<TBase>
Array yang digunakan untuk perbandingan.
- items
- ImmutableArray<TDerived>
Item yang digunakan untuk perbandingan.
Mengembalikan
true
untuk menunjukkan urutannya sama; jika tidak, false
.