HumanReadableIgnoreCondition Enum
public enum HumanReadableIgnoreConditionNo documentation is available.
Fields
| Name | Value | Description |
|---|---|---|
Never | 0 | Property is never ignored during serialization. |
Always | 1 | Property is always ignored during serialization. |
WhenWritingDefault | 2 | If the value is the default, the property is ignored during serialization. This is applied to both reference and value-type properties and fields. |
WhenWritingNull | 3 | If the value is null, the property is ignored during serialization. This is applied only to reference-type or Nullable<T> properties and fields. |
WhenWritingEmptyCollection | 4 | If the value implements IEnumerable and the collection is empty, the property is ignored during serialization. |
WhenWritingDefaultOrEmptyCollection | 5 | If the value implements IEnumerable and the collection is empty, or if the value is the default, the property is ignored during serialization. |
Custom | 6 | The ignore logic is provided by HumanReadableIgnoreAttribute.CustomCondition. |