Version 3.3.1.2

PreviouslySerializedAsAttribute class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class PreviouslySerializedAsAttribute : Attribute, _Attribute
Indicates that an instance field or auto-property was previously serialized with a different name, so that values serialized with the old name will be properly deserialized into this member. This does the same as Unity's FormerlySerializedAs attribute, except it can also be applied to properties.
Inheritance
  • System.Object
  • System.Attribute
  • PreviouslySerializedAsAttribute
See Also
  • System.Attribute

Constructors

PreviouslySerializedAsAttribute(String)
Initializes a new instance of the PreviouslySerializedAsAttribute class.
public PreviouslySerializedAsAttribute(string name)
Parameters
System.String name

The former name.

Properties

Name
The former name.
public string Name { get; }