Class GorgonnintEqualityComparer
An equality comparer for the nint
type.
Implements
Inherited Members
Namespace: Gorgon.Native
Assembly: Gorgon.Core.dll
Syntax
public class GorgonnintEqualityComparer : IEqualityComparer<nint>
Methods
| Edit this page View SourceEquals(nint, nint)
Determines whether the specified objects are equal.
Declaration
public bool Equals(nint x, nint y)
Parameters
Type | Name | Description |
---|---|---|
nint | x | The first object of type |
nint | y | The second object of type |
Returns
Type | Description |
---|---|
bool | true if the specified objects are equal; otherwise, false if not. |
GetHashCode(nint)
Returns a hash code for this instance.
Declaration
public int GetHashCode(nint obj)
Parameters
Type | Name | Description |
---|---|---|
nint | obj | The object for which a hash code is to be returned. |
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |