Vixen
02b45cc4
csharp
public sealed class ContentReferenceSerializer<T> where T : class

Reads and writes a content reference: the id goes to the stream, the value does not.

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

Remarks

Hand-written and generic, and registered per closed type by the [DataContract] generator when it sees a member of that type. That is what keeps it AOT-correct: every ContentReference<Texture> a build can encounter was instantiated in generated source rather than reflected into existence at run time.

Methods (2)

Used by (1)

  • SerializerRegistrationVixen.Assets.Tests