Skip to content

M_CodeJam_Collections_ArrayExtensions_EqualsTo__1_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 9 revisions

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

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

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

Syntax

C#

public static bool EqualsTo<T>(
	this T[] a,
	T[] b
)
where T : Object, IEquatable<T>

VB

<ExtensionAttribute>
Public Shared Function EqualsTo(Of T As {Object, IEquatable(Of T)}) ( 
	a As T(),
	b As T()
) As Boolean

F#

[<ExtensionAttribute>]
static member EqualsTo : 
        a : 'T[] * 
        b : 'T[] -> bool  when 'T : Object and IEquatable<'T>

Parameters

 

a
Type: T[]
The first array to compare.
b
Type: T[]
The second array to compare.

Type Parameters

 

T
Type of array item.

Return Value

Type: Boolean
true if content of a equals to b, false otherwise.

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