📜  protobuf-net 中的构造函数 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.892000             🧑  作者: Mango

代码示例1
[ProtoContract(SkipConstructor=true)]
public class ContainerForA
{
    [ProtoMember(3)]
    public IBaseA InstanceOfA { get; set; }

    public ContainerForA()
    {
        InstanceOfA = new ClassA();
    }
}