2012年3月5日

using ISerializable to control serialization and deserialization

摘要: [Serializable]publicclassOuterClass:ISerializable{publicOuterClass(){}privateOuterClass(SerializationInfoinfo,StreamingContextcontext){MyField=info.GetString("MyField");Inner=(InnerClass)info.GetValue("Inner",typeof(InnerClass));}#regionISerializableMemberspublicvoidGetObjectData 阅读全文

posted @ 2012-03-05 09:41 shcity 阅读(183) 评论(0) 推荐(0) 编辑

导航