Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Serialization.ClassifyIgnoreIfEmptyAttribute

Summary

If this attribute is used on a field or automatically-implemented property, Classify omits its serialization if that serialization would be completely empty. If it is used on a type, it applies to all collection-type fields in the type. See also remarks.

Remarks

Using this together with ClassifyIgnoreIfDefaultAttribute will cause the distinction between null and an empty collection to be lost. However, a collection containing only null elements is persisted correctly.

Constructors

Creates a new instance of ClassifyIgnoreIfEmptyAttribute.