ArraySegment<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.
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin