Class TypeComparer
Type equality comparer
Implements
Inherited Members
Namespace: XData.Extensions
Assembly: XData.docfx.dll
Syntax
public class TypeComparer : IEqualityComparer<Type>
Properties
| Improve this Doc View SourceInstance
Type equality comparer instance
Declaration
public static TypeComparer Instance { get; }
Property Value
Type | Description |
---|---|
TypeComparer |
Methods
| Improve this Doc View SourceEquals(Type, Type)
Determines whether the specified types are equal.
Declaration
public bool Equals(Type x, Type y)
Parameters
Type | Name | Description |
---|---|---|
Type | x | The first type to compare. |
Type | y | The second type to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the specified types are equal; otherwise, false. |
GetHashCode(Type)
Returns a hash code for the specified type.
Declaration
public int GetHashCode(Type obj)
Parameters
Type | Name | Description |
---|---|---|
Type | obj | The type for which a hash code is to be returned. |
Returns
Type | Description |
---|---|
Int32 | A hash code for the specified type. |