constructor in protobuf-net

82

constructor in protobuf-net -

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

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

Comments

Submit
0 Comments