Gorgon
Show / Hide Table of Contents

Class GorgonnintEqualityComparer

An equality comparer for the nint type.

Inheritance
object
GorgonnintEqualityComparer
Implements
IEqualityComparer<nint>
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Native
Assembly: Gorgon.Core.dll
Syntax
public class GorgonnintEqualityComparer : IEqualityComparer<nint>

Methods

| Edit this page View Source

Equals(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 to compare.

nint y

The second object of type nint to compare.

Returns
Type Description
bool

true if the specified objects are equal; otherwise, false if not.

| Edit this page View Source

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.

Implements

IEqualityComparer<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author