GetDefault(Type) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Gets a default value for the given type type

[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Native AOT uses generated defaults and never calls the guarded reflection fallback.")]
public object? GetDefault(Type type)

Parameters

type
Type

Returns