GetFallbackDefaultValue(Type) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Determines the default value for the given type when no suitable factory is registered for it.

[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "The reflection fallback is unreachable when dynamic code is unavailable.")]
protected virtual object? GetFallbackDefaultValue(Type type)

Parameters

type
Type

The type of which to produce a value.

Returns