Method DeferredSequenceEqual
DeferredSequenceEqual<TSource>(IQueryable<TSource>, IEnumerable<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<bool> DeferredSequenceEqual<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source1 | An System.Linq.IQueryable`1 whose elements to compare to those of source2. |
IEnumerable<TSource> | source2 | An System.Collections.Generic.IEnumerable`1 whose elements to compare to those of the first sequence. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Boolean> | true if the two source sequences are of equal length and their corresponding elements compare equal; otherwise, false. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of the input sequences. |
DeferredSequenceEqual<TSource>(IQueryable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<bool> DeferredSequenceEqual<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource> comparer)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source1 | An System.Linq.IQueryable`1 whose elements to compare to those of source2. |
IEnumerable<TSource> | source2 | An System.Collections.Generic.IEnumerable`1 whose elements to compare to those of the first sequence. |
IEqualityComparer<TSource> | comparer | An System.Collections.Generic.IEqualityComparer`1 to use to compare elements. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Boolean> | true if the two source sequences are of equal length and their corresponding elements compare equal; otherwise, false. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of the input sequences. |