Class Equality
- Namespace
- LfrlAnvil
- Assembly
- LfrlAnvil.Core.dll
Creates instances of Equality<T> type.
public static class Equality
- Inheritance
-
Equality
- Inherited Members
Methods
Create<T>(T?, T?)
Creates a new Equality<T> instance.
[Pure]
public static Equality<T> Create<T>(T? first, T? second)
Parameters
firstTFirst value to compare.
secondTSecond value to compare.
Returns
- Equality<T>
New Equality<T> instance.
Type Parameters
TValue type.
GetUnderlyingType(Type?)
Attempts to extract the underlying type from the provided Equality<T>type.
[Pure]
public static Type? GetUnderlyingType(Type? type)
Parameters
typeTypeType to extract the underlying type from.
Returns
- Type
Underlying Equality<T> type or null when the provided
typeis not related to the Equality<T> type.