System.ArraySegment<T>.Equals Method

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

Syntax

public override bool Equals (object obj)

Parameters

obj
The object to be compared with the current instance.

Returns

true if the specified object is a ArraySegment`1 structure and is equal to the current instance; otherwise, false.

Remarks

Two ArraySegment`1 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.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0