How to avoid having duplicate objects in WCF over protobuf
问题 I've a small units tests to test circular dependencies. My object is the following: [ProtoContract] public class Node { [ProtoMember(1)] public String Name { get; set; } [ProtoMember(2,AsReference = true)] public List<Node> Childs { get; set; } public Node() { Childs = new List<Node>(); } } And the following service: [ServiceContract] public interface INodeService : IService { [OperationContract] Task<Node> GetCyclicNodes(); } public class NodeService : Service, INodeService { public async