Memory<T>.Equals Memory<T>.Equals Memory<T>.Equals Memory<T>.Equals Method

Definition

Overloads

Equals(Memory<T>) Equals(Memory<T>) Equals(Memory<T>) Equals(Memory<T>)

Determines whether the specified Memory<T> object is equal to the current object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

Equals(Memory<T>) Equals(Memory<T>) Equals(Memory<T>) Equals(Memory<T>)

Determines whether the specified Memory<T> object is equal to the current object.

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

Parameters

other
Memory<T> Memory<T> Memory<T> Memory<T>

The object to compare with the current instance.

Returns

true if the current instance and other are equal; otherwise, false.

Remarks

The two objects are equal if:

The Equals(Memory<T>) method performs a test for reference equality; it does not compare the elements of Memory<T> for equality.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

public:
 override bool Equals(System::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 Object Object Object

The object to compare with the current instance.

Returns

true if the current instance and obj are equal; otherwise, false.

Remarks

Two Memory<T> objects are equal if both objects point to the same array and have the same length. Note that the test for equality does not check whether the contents are equal.

Applies to