I am prototyping Protobuf-net to replace some of our existing C# code which is currently using [Datacontract] to Serialize objects to Xml.
Using protobuffer we can e
Since inheritance is not part of the core spec, I basically represent this using encapsulation. So your [ProtoInclude]
maps to:
message ProtoAlien {
// other fields 1 thru 6 [snip]
optional ProtoScholar ProtoScholar = 7;
}
message ProtoScholar {
optional string Subject = 1;
}
GetProto<T>()
is undergoing an overhaul in v2, so it should support a few more of these scenarios.