How to I serialize an object like this with protobuf-net:
public class MyObject{
public string Key {get; set;}
public List<Object> Values {get; set;}
}
When I try to serialize this with a TypeModel protobuf-net throws an error stating that it doesn't know how to serialize System.Object. Now I know that Values will only ever contain primitives (int, string, float, DateTime, etc.). So how do I let protobuf-net know about this?