Uredi

Deli z drugimi prek


ArraySegment<T>.Equals Method

Definition

Determines whether two objects are equal.

Overloads

Equals(ArraySegment<T>)

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

Equals(Object)

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

Equals(ArraySegment<T>)

Source:
ArraySegment.cs
Source:
ArraySegment.cs
Source:
ArraySegment.cs

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

public:
 bool Equals(ArraySegment<T> obj);
public bool Equals (ArraySegment<T> obj);
override this.Equals : ArraySegment<'T> -> bool
Public Function Equals (obj As ArraySegment(Of T)) As Boolean

Parameters

obj
ArraySegment<T>

The structure to compare with the current instance.

Returns

true if the specified ArraySegment<T> structure is equal to the current instance; otherwise, false.

Remarks

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.

Applies to

Equals(Object)

Source:
ArraySegment.cs
Source:
ArraySegment.cs
Source:
ArraySegment.cs

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

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The object to be compared with the current instance.

Returns

true if the specified object is a ArraySegment<T> structure and is equal to the current instance; otherwise, false.

Remarks

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.

Applies to