How can I deserialize an object if I don't know the right type?
问题 Well I want to send commands and data between client and server. I have three projects: Client Server Common - here I put common classes and network abstraction layer I am using following data structures for communications between client and server public class Packet<T> { public string Name { get; set; } public string From { get; set; } public string To { get; set; } public PacketType PacketType { get; set; } public T Container { get; set; } public Packet() { } public Packet(string name,