AlwaysFormatsSelfAttribute class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)]
public sealed class AlwaysFormatsSelfAttribute : Attribute, _Attribute
Use this attribute to specify that a type that implements the Sirenix.Serialization.ISelfFormatter interface should *always* format itself regardless of other formatters being specified.

This means that the interface will be used to format all types derived from the type that is decorated with this attribute, regardless of custom formatters for the derived types.

  • System.Object
  • System.Attribute
  • AlwaysFormatsSelfAttribute
See Also
  • System.Attribute


public AlwaysFormatsSelfAttribute()