HumanReadableDefaultValueAttribute Class
Specifies the default value of a property or field used for comparison when serializing.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class HumanReadableDefaultValueAttribute : HumanReadableAttribute- Inheritance
HumanReadableAttributeHumanReadableDefaultValueAttribute
Constructors
| Name | Description |
|---|---|
| HumanReadableDefaultValueAttribute(object?) | Initializes a new instance of HumanReadableDefaultValueAttribute. |
HumanReadableDefaultValueAttribute(object?)
HumanReadableDefaultValueAttribute.csInitializes a new instance of HumanReadableDefaultValueAttribute.
public HumanReadableDefaultValueAttribute(object? defaultValue)Parameters
defaultValueobject?
Properties
| Name | Description |
|---|---|
| DefaultValue | Gets the default value used for comparison when determining whether to serialize a property or field based on the DefaultIgnoreCondition setting. |