HumanReadableIgnoreCondition Enum

public enum HumanReadableIgnoreCondition

No documentation is available.

Fields

NameValueDescription
Never0Property is never ignored during serialization.
Always1Property is always ignored during serialization.
WhenWritingDefault2If the value is the default, the property is ignored during serialization. This is applied to both reference and value-type properties and fields.
WhenWritingNull3If the value is null, the property is ignored during serialization. This is applied only to reference-type or Nullable<T> properties and fields.
WhenWritingEmptyCollection4If the value implements IEnumerable and the collection is empty, the property is ignored during serialization.
WhenWritingDefaultOrEmptyCollection5If the value implements IEnumerable and the collection is empty, or if the value is the default, the property is ignored during serialization.
Custom6The ignore logic is provided by HumanReadableIgnoreAttribute.CustomCondition.