ArraySegment<T>.Equality Operator (ArraySegment<T>, ArraySegment<T>)

 
equivalentCodeEntityM:System.ArraySegment`1.Equals(System.ArraySegment{`0})

Indicates whether two ArraySegment<T> structures are equal.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public static bool operator ==(
	ArraySegment<T> a,
	ArraySegment<T> b
)

Parameters

a
Type: System.ArraySegment<T>

The structure on the left side of the equality operator.

b
Type: System.ArraySegment<T>

The structure on the right side of the equality operator.

Return Value

Type: System.Boolean

true if a is equal to b; otherwise, false.

Two ArraySegment<T> objects are considered to be equal if all the following conditions are met:

  • They reference the same array.

  • They begin at the same index.

  • They have the same number of elements.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: