Method GetDefaultValue
GetDefaultValue(TypeCode)
Gets default value for the given TypeCode.
public static object? GetDefaultValue(TypeCode code)
Parameters
code
TypeCode
Returns
GetDefaultValue(PropertyInfo, out object?)
Gets default value of the property using DefaultValueAttribute.
public static bool GetDefaultValue(PropertyInfo p, out object? defValue)
Parameters
p
PropertyInfoProperty information.
defValue
objectDefault value of the property.