Class ConstantLoaderComparer
Allows comparing equality between two IConstantLoader based on the type of constant that both can load.
Implements
Inherited Members
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.TypeFactory.dll
Syntax
public class ConstantLoaderComparer : IEqualityComparer<IConstantLoader>
Methods
| Edit this page View SourceEquals(IConstantLoader?, IConstantLoader?)
Compares two IConstantLoader instances.
Declaration
public bool Equals(IConstantLoader? x, IConstantLoader? y)
Parameters
| Type | Name | Description |
|---|---|---|
| IConstantLoader | x | First object to compare. |
| IConstantLoader | y | Second object to compare. |
Returns
| Type | Description |
|---|---|
| bool | true if both objects load constants of the same type, false otherwise. |
GetHashCode(IConstantLoader)
Gets the hash code of an IConstantLoader instance that can be used to compare the type of constant that the object is capable of loading.
Declaration
public int GetHashCode(IConstantLoader obj)
Parameters
| Type | Name | Description |
|---|---|---|
| IConstantLoader | obj | Object from which to obtain the hash code. |
Returns
| Type | Description |
|---|---|
| int | The hash code of the constant type that the object can load. |