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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기