Definition
Assembly: CloudNimble.EasyAF.Core.dll Namespace: CloudNimble.EasyAF.Core Inheritance: System.ObjectSyntax
Summary
Provides an equality comparer for objects that implementIIdentifiable1`.
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
.ctor Inherited
Inherited from
objectSyntax
Methods
Equals
Determines whether the specifiedIIdentifiable1` objects are equal by comparing their Id properties.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
x | CloudNimble.EasyAF.Core.IIdentifiable<T> | The first object to compare. |
y | CloudNimble.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
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode
Returns a hash code for the specifiedIIdentifiable1` object based on its Id property.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | CloudNimble.EasyAF.Core.IIdentifiable<T> | The object for which to get a hash code. |
Returns
Type:int
A hash code for the specified object.
Exceptions
| Exception | Description |
|---|---|
ArgumentNullException | Thrown when obj is null. |
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Related APIs
- System.Collections.Generic.IEqualityComparer<CloudNimble.EasyAF.Core.IIdentifiable<T>>