Protobuf-net creating typemodel with interface and abstract baseclass
问题 I'm trying to serialize a model using the great Protobuf-NET. I cannot use the attributes (objects are unknown at compile-time),so I constructed a TypeModel. My object model consist of a class TestDataObject , this class has a property of ITestDataExtension . The abstract baseclass TestDataExtensionBase implements this interface and the class TestDataExtension (myDataObjectExtA in code) inherits from this baseclass. My TypeModel is constructed like this: System.IO.MemoryStream tmpMemoryStream