Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Core.dll Namespace: CloudNimble.EasyAF.Core Inheritance: System.Object

Syntax

CloudNimble.EasyAF.Core.IIdentifiableEqualityComparer<T>

Summary

Provides an equality comparer for objects that implement IIdentifiable1`. Compares objects based on their Id property values for equality and hash code generation.

Type Parameters

  • T - The type of the identifier used by the identifiable objects.

Constructors

.ctor

Syntax

public IIdentifiableEqualityComparer()

.ctor Inherited

Inherited from object

Syntax

public Object()

Methods

Equals

Determines whether the specified IIdentifiable1` objects are equal by comparing their Id properties.

Syntax

public bool Equals(CloudNimble.EasyAF.Core.IIdentifiable<T> x, CloudNimble.EasyAF.Core.IIdentifiable<T> y)

Parameters

NameTypeDescription
xCloudNimble.EasyAF.Core.IIdentifiable<T>The first object to compare.
yCloudNimble.EasyAF.Core.IIdentifiable<T>The second object to compare.

Returns

Type: bool True if the objects are equal (including both being null), false otherwise.

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode

Returns a hash code for the specified IIdentifiable1` object based on its Id property.

Syntax

public int GetHashCode(CloudNimble.EasyAF.Core.IIdentifiable<T> obj)

Parameters

NameTypeDescription
objCloudNimble.EasyAF.Core.IIdentifiable<T>The object for which to get a hash code.

Returns

Type: int A hash code for the specified object.

Exceptions

ExceptionDescription
ArgumentNullExceptionThrown when obj is null.

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?
  • System.Collections.Generic.IEqualityComparer<CloudNimble.EasyAF.Core.IIdentifiable<T>>