ArraySegment<T>::Equals Method (Object^)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Determines whether the specified object is equal to the current instance.

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

virtual bool Equals(
	Object^ obj
) override


Type: System::Object^

The object to be compared with the current instance.

Return Value

Type: System::Boolean

true if the specified object is a ArraySegment<T> structure and 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
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top