- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_Collections_ArrayExtensions_EqualsTo__1_2
        Andrew Koryavchenko edited this page Jul 4, 2017 
        ·
        2 revisions
      
    Returns true, if length and content of a equals b.
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
public static bool EqualsTo<T>(
	this T[] a,
	T[] b,
	IEqualityComparer<T> comparer
)VB
<ExtensionAttribute>
Public Shared Function EqualsTo(Of T) ( 
	a As T(),
	b As T(),
	comparer As IEqualityComparer(Of T)
) As BooleanF#
[<ExtensionAttribute>]
static member EqualsTo : 
        a : 'T[] * 
        b : 'T[] * 
        comparer : IEqualityComparer<'T> -> bool 
- a
- Type: T[]
 The first array to compare.
- b
- Type: T[]
 The second array to compare.
- comparer
- Type: System.Collections.Generic.IEqualityComparer(T)
 Instance of IComparer(T) to compare values.
- T
- Type of array item.
Type: Booleantrue if content of a equals to b, false otherwise.
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
| Exception | Condition | 
|---|---|
| ArgumentNullException | comparer is null. | 
ArrayExtensions Class
EqualsTo Overload
CodeJam.Collections Namespace