Click or drag to resize

DefaultValueCreateDefault Method

Creates the default value (C#: default(T)) for the specified type, where the type is only known at runtime.

Namespace:  TomsToolbox.Essentials
Assembly:  TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax
public static Object? CreateDefault(
	Type type
)

Parameters

type
Type: SystemType
The type.

Return Value

Type: Object
The default value.
See Also