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
Given the following code: [Serializable, ProtoContract] [ProtoInclude(100, typeof(ValueA))] [ProtoInclude(101, typeof(ValueB))]
public interface IYObject { string X { get; } } public class YObject : IYObject { public string X { get; set; }
I\'m still playing with the newly released version of protobuf-net and I\'m facing an issue I don\'t understand.
Observe the following code (taken from this question): [ProtoContract] public class B { [ProtoMember(1)] public int Y;
Observe the following trivial piece of code: [ProtoContract] public class B { [ProtoMember(1)] public int Y;
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
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
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开发者_开发问
Please, observe the following simple program (based on the example from the protobuf-net project v1 wiki):