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

 
System_CAPS_noteNote

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

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

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

public:
virtual bool Equals(
	Object^ obj
) override

Parameters

obj
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
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: