ArraySegment(Of T).Equality Operator (ArraySegment(Of T), ArraySegment(Of T))

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

Indicates whether two ArraySegment(Of T) structures are equal.

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

Public Shared Operator = (
	a As ArraySegment(Of T),
	b As ArraySegment(Of T)
) As Boolean

Parameters

a
Type: System.ArraySegment(Of T)

The structure on the left side of the equality operator.

b
Type: System.ArraySegment(Of 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(Of 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: