Use this attribute to rename a struct, class, field or property without losing its serialized value.
Inheritance
FormerlySerializedAsAttribute
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
public class FormerlySerializedAsAttribute : Attribute, _Attribute
Constructors
Declaration
public FormerlySerializedAsAttribute(string oldName)
Parameters
Type |
Name |
Description |
String |
oldName |
|
Properties
Declaration
public string OldName { get; }
Property Value