标签: c# xml serialization datacontractserializer
我有以下类型的代码:
[DataContract(Name ="test_class")] public class Test { [DataMember(Name = "test")] private Lazy<IList<AnotherClass>> lazyList; }
我想将DataContractSerializer序列化为XML。我想保存Lazy的值。怎么会这样呢?
DataContractSerializer
XML
Lazy