I'm new to using protobuf and have an issue trying to serialize a class that inherits from Dictionary. Additional properties are not being serialized. As an examle I have this class
[ProtoContract]
public class InheritDictionary: Dictionary<string,string>
{
private int _myInt;
[ProtoMember(1)]
public int MyInt
{
get
{
return _myInt;
}
set
{
_myInt = value;
}
}
}
When I serialize the MyInt property is not included. Am I missing something?