Table of Contents

Class Ref

Namespace
LfrlAnvil
Assembly
LfrlAnvil.Core.dll

Creates instances of Ref<T> type.

public static class Ref
Inheritance
Ref
Inherited Members

Methods

Create<T>(T)

Creates a new Ref<T> instance.

[Pure]
public static Ref<T> Create<T>(T value)

Parameters

value T

Underlying value.

Returns

Ref<T>

New Ref<T> instance.

Type Parameters

T

GetUnderlyingType(Type?)

Attempts to extract the underlying type from the provided Ref<T>type.

[Pure]
public static Type? GetUnderlyingType(Type? type)

Parameters

type Type

Type to extract the underlying type from.

Returns

Type

Underlying Ref<T> type or null when the provided type is not related to the Ref<T> type.