Table of Contents

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 T

First value to compare.

second T

Second 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 Type

Type 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.