Class ConfigurationObjectComparer
A comparer for objects that implement interfaces derived from IConfigurationObject.
Inheritance
System.Object
ConfigurationObjectComparer
Implements
System.Collections.Generic.IEqualityComparer<IConfigurationObject>
Namespace: OpenCollar.Extensions.Configuration
Assembly: OpenCollar.Extensions.Configuration.dll
Syntax
public class ConfigurationObjectComparer : IEqualityComparer<IConfigurationObject>
Remarks
The following UML has been generated directly from the source code using Jebbs PlantUML .
Properties
| Improve this Doc View SourceInstance
Gets an instance of the comparer
Declaration
public static ConfigurationObjectComparer Instance { get; }
Property Value
Type | Description |
---|---|
ConfigurationObjectComparer | The instance of the comparer |
Methods
| Improve this Doc View SourceEquals(IConfigurationObject, IConfigurationObject)
Determines whether the specified objects are equal.
Declaration
public bool Equals(IConfigurationObject x, IConfigurationObject y)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationObject | x | The first object of type |
IConfigurationObject | y | The second object of type |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified objects are equal; otherwise, false. |
GetHashCode(IConfigurationObject)
Returns a hash code for this instance.
Declaration
public int GetHashCode(IConfigurationObject obj)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationObject | obj | The object. |
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Implements
System.Collections.Generic.IEqualityComparer<T>
See Also
System.Collections.Generic.IEqualityComparer<T>