public sealed class DataContractGeneratorEmits a serializer for every [DataContract] type in the compilation.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
ADR-002 forbids IL weaving, which is how Stride does this. A source generator does the same job with two advantages that matter more than they sound: the emitted code is C# a person can read and step through, and it exists at compile time, so a type that cannot be serialised is a build error rather than a crash on the machine that loads the save file.
Serializers are emitted into their own namespace rather than into the contract type, so nothing has to be declared partial. That is the difference between a serialisation library and a serialisation library that has an opinion about how every type in the engine is declared.
Methods (1)
public void Initialize(IncrementalGeneratorInitializationContext context)Called to initialize the generator and register generation steps via callbacks on the