| 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
)
Public Shared Function CreateDefault (
type As Type
) As Object
Parameters
- type
- Type: SystemType
The type.
Return Value
Type:
ObjectThe default value.
See Also