protobuf-net
Resolve from IoC container based on enum value
Problem I have a protobuf message definition with a MessageType field, which is an enum. Given an incoming protobuf message, I would like to resolve some IMessageHandlers from an IoC container based[详细]
2023-03-09 13:29 分类:问答ProtoBuf, inheritance and generics
Given the following code: [Serializable, ProtoContract] [ProtoInclude(100, typeof(ValueA))] [ProtoInclude(101, typeof(ValueB))][详细]
2023-03-08 17:26 分类:问答Why is the following protobuf-net usage illegal?
public interface IYObject { string X { get; } } public class YObject : IYObject { public string X { get; set; }[详细]
2023-03-08 14:35 分类:问答exception while serializing a graph
I\'m still playing with the newly released version of protobuf-net and I\'m facing an issue I don\'t understand.[详细]
2023-03-08 13:29 分类:问答Help needed with the most trivial protobuf-net example 2
Observe the following code (taken from this question): [ProtoContract] public class B { [ProtoMember(1)] public int Y;[详细]
2023-03-08 04:49 分类:问答Help needed with the most trivial protobuf-net example
Observe the following trivial piece of code: [ProtoContract] public class B { [ProtoMember(1)] public int Y;[详细]
2023-03-08 04:09 分类:问答How can one indicate to protobuf-net that an interface property should be deserialized as a particular concrete type?
I have this property: public class SomeClass { public ISomeInterface SomeProperty { get;set; } } Now, ISomeInterface in this particular context can only be a specific concrete type, like SomeClass2[详细]
2023-03-07 22:03 分类:问答Can protobuf-net be used to (de)serialize a list containing heterogeneous objects?
Is it possible to (de)serialize a list of heterogeneous objec开发者_如何学Cts?A List<object> poses a number of challenges for a serialization format that does not include type metadata... but as[详细]
2023-03-07 08:12 分类:问答Using a custom WCF serializer in Silverlight
In \"full\" .NET it is pretty easy to swap out the serializer - either in configuration, or via custom attributes. However, I want to do something similar in Silverlight\'s WCF - i.e. prov开发者_开发问[详细]
2023-03-07 07:32 分类:问答Does protocol buffers support serialization of object graphs with shared references?
Please, observe the following simple program (based on the example from the protobuf-net project v1 wiki):[详细]
2023-03-07 06:44 分类:问答