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
first
TFirst value to compare.
second
TSecond value to compare.
Returns
- Equality<T>
New Equality<T> instance.
Type Parameters
T
Value type.
GetUnderlyingType(Type?)
Attempts to extract the underlying type from the provided Equality<T>type
.
[Pure]
public static Type? GetUnderlyingType(Type? type)
Parameters
type
TypeType to extract the underlying type from.
Returns
- Type
Underlying Equality<T> type or null when the provided
type
is not related to the Equality<T> type.