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