Hi,
I have a client server application which has various messages
containing enums, ie I serialize classes of the form:
class MyClass
{
MyEnum e;
}
enum MyEnum { Unknown, Key1, Key2 }
When I add enums at the server, the clients throw an exception on
deserialization. Although if I add fields to the class everything is
fine.
What I would prefer in an ideal situation is the deserializer setting
the enum to MyEnum.Unknown. Is this possible? What is the most
graceful way to handle this situation?
Thanks