Export (0) Print
Expand All

ArraySegment<T>.Equality Operator

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft