ReadOnlyMemory<T>.Equals ReadOnlyMemory<T>.Equals ReadOnlyMemory<T>.Equals ReadOnlyMemory<T>.Equals Method

Definition

Overloads

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

Determines whether the specified object is equal to the current read-only memory region.

Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>)

Determines whether the current instance and a specified ReadOnlyMemory<T> objects are equal.

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

Determines whether the specified object is equal to the current read-only memory region.

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.

Returns

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

Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>) Equals(ReadOnlyMemory<T>)

Determines whether the current instance and a specified ReadOnlyMemory<T> objects are equal.

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

Parameters

Returns

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

Implements

Remarks

[!IMPORTANT]

Two ReadOnlyMemory<T> objects are equal if the memory regions point to the same array and have the same length. The method does not check to see if the contents are equal.

Applies to