Equals Method (ArraySegment(T))
Collapse the table of content
Expand the table of content

ArraySegment<T>.Equals Method (ArraySegment<T>)

 

Determines whether the specified ArraySegment<T> structure is equal to the current instance.

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

public bool Equals(
	ArraySegment<T> obj
)

Parameters

obj
Type: System.ArraySegment<T>

The structure to compare with the current instance.

Return Value

Type: System.Boolean

true if the specified ArraySegment<T> structure is equal to the current instance; 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 in the array.

  • 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:
© 2016 Microsoft