Vixen
02b45cc4
csharp
public sealed class DataAliasAttribute

Records a former name of a type or member so data written before a rename still loads. Applied repeatedly to carry a chain of renames.

No guide page documents this yet — the page shows what the code says about itself.

As a annotation

Valid on
Class, Struct, Enum, Property, Field, repeatable

Remarks

This is the half of the versioning story that costs nothing to add and is impossible to add later: once the old name is gone from the source, nobody remembers what it was.

Fields and properties (1)

  • public string Name

    The former name, as it appears in already-written data.

Methods (1)

  • public DataAliasAttribute(string name)

    Records as a former name of the annotated element.

Used by (4)

  • AnnotatedVixen.Core.Tests
  • AnnotationTestsVixen.Core.Tests
  • BoxVixen.Core.Serialization.Tests
  • SpriteRendererVixen.Core.Reflection.Tests