C# .net 子类序列化时无法识别的解决办法

Posted on 2012-06-04 16:36:00

C# .net 子类序列化时无法识别的解决办法

在父类的前面加上    [KnownType(typeof(CHILD))]  属性