Method GetDefaultValue
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
GetDefaultValue(Type)
Returns the default value for the given type. For value types, this means a 0-initialized
instance of the type; for reference types, this means null.
public static object? GetDefaultValue(this Type type)
Parameters
typeTypeThe type to get the default value of.
Returns
- object
The default value for the given type.