Skip to content

M_CodeJam_Collections_ArrayExtensions_EqualsTo__1_1

andrewvk edited this page Mar 30, 2016 · 9 revisions

ArrayExtensions.EqualsTo(T) Method (T[], T[], IEqualityComparer(T))

[This is preliminary documentation and is subject to change.]

Returns true, if length and content of a equals b.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[PureAttribute]
public static bool EqualsTo<T>(
	[CanBeNullAttribute] this T[] a,
	[CanBeNullAttribute] T[] b,
	[NotNullAttribute] IEqualityComparer<T> comparer
)

VB

<ExtensionAttribute>
<PureAttribute>
Public Shared Function EqualsTo(Of T) ( 
	<CanBeNullAttribute> a As T(),
	<CanBeNullAttribute> b As T(),
	<NotNullAttribute> comparer As IEqualityComparer(Of T)
) As Boolean

F#

[<ExtensionAttribute>]
[<PureAttribute>]
static member EqualsTo : 
        [<CanBeNullAttribute>] a : 'T[] * 
        [<CanBeNullAttribute>] b : 'T[] * 
        [<NotNullAttribute>] comparer : IEqualityComparer<'T> -> bool 

Parameters

 

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.

Type Parameters

 

T

Return Value

Type: Boolean
[Missing documentation for "M:CodeJam.Collections.ArrayExtensions.EqualsTo1(0[],0[],System.Collections.Generic.IEqualityComparer{0})"]

Usage Note

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).

See Also

Reference

ArrayExtensions Class
EqualsTo Overload
CodeJam.Collections Namespace

Clone this wiki locally