ReadOnlyMemory<T>.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Equals(Object) |
Determines whether the specified object is equal to the current read-only memory region. |
Equals(ReadOnlyMemory<T>) |
Determines whether the current instance and a specified ReadOnlyMemory<T> objects are equal. |
Equals(Object)
- Source:
- ReadOnlyMemory.cs
- Source:
- ReadOnlyMemory.cs
- Source:
- ReadOnlyMemory.cs
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);
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 compare.
Returns
true
if the current instance and obj
are equal; otherwise, false
.
Applies to
Equals(ReadOnlyMemory<T>)
- Source:
- ReadOnlyMemory.cs
- Source:
- ReadOnlyMemory.cs
- Source:
- ReadOnlyMemory.cs
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);
public bool Equals (ReadOnlyMemory<T> other);
override this.Equals : ReadOnlyMemory<'T> -> bool
Public Function Equals (other As ReadOnlyMemory(Of T)) As Boolean
Parameters
- other
- ReadOnlyMemory<T>
The read-only memory to compare.
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.