Answers for "constructor in protobuf-net"

C#
0

constructor in protobuf-net

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

    public ContainerForA()
    {
        InstanceOfA = new ClassA();
    }
}
Posted by: Guest on November-16-2020

C# Answers by Framework

Browse Popular Code Answers by Language