Create(Type, Object?) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Creates an instance of the Ref<T> class for the given type using the given value.

[RequiresDynamicCode("Ref<T> must be instantiated at compile time for Native AOT. Use Ref.Create<T>(value) instead.")]
[RequiresUnreferencedCode("Ref<T> constructor metadata may have been trimmed. Use Ref.Create<T>(value) instead.")]
public static object Create(Type type, object? value)

Parameters

type
Type
value
Object

Returns