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.
  • Any attribute with this type name is accepted by Classify to mean the same thing, regardless of where it is declared, making it possible to apply this attribute without referencing this library.

Constructors

Creates a new instance of ClassifyIgnoreIfEmptyAttribute.