TFirst
Type of elements of the first inbound sequence.
TSecond
Type of elements of the second inbound sequence.
Platform Core .NET Assemblies API
CompareZip<TFirst,TSecond> Method
See Also  Send Feedback
Terrasoft.Common Namespace > CollectionUtilities Class : CompareZip<TFirst,TSecond> Method
source
First sequence.
secondSource
Second sequence.
comparePredicate
Function that compares the corresponding items of the sequences.

Glossary Item Box

Compares two sequences item by item using specified predicate function.

Syntax

 
C#
 
 

Parameters

source
First sequence.
secondSource
Second sequence.
comparePredicate
Function that compares the corresponding items of the sequences.

Type Parameters

TFirst
Type of elements of the first inbound sequence.
TSecond
Type of elements of the second inbound sequence.

Return Value

true, if all items are equal or false on the first mismatch.

Remarks

If the collections have different number of items in them, the number of comparisons will be equal to the number of items in the lesser collection.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.