1
在protobuf-net中,应该装饰哪个基类?这个类是直接子类还是最远的基类?或两者?在Protobuf-net中装饰中间类
[ProtoContract]
[ProtoInclude(42, typeof(Derived))] // Here?
public abstract class BaseClass { }
[ProtoContract]
[ProtoInclude(42, typeof(Derived))] // Or Here?
public abstract class Intermediary : BaseClass { }
[ProtoContract]
public class Derived : Intermediary { }