摘要
为实现数据的持久化保存,.NET Framework提供了良好的序列化机制,三种格式的序列化方法:二进制序列化、SOAP序列化、XML序列化。在反序列化时,重新创建原始对象的相同副本。本文详细分析以上几种序列化的优缺点和实现方法,并结合应用给出一个序列化实现的实例,将它应用于WinForm窗体和控件类中取得了良好的效果。
NET Framework provides a good serialization mechanism to implement the permanence save of data and also provides three format serialzation methods, which are Binary Serialization,SOAP Serialization,XML Serialization. In the process of deserialization, it creates same copy of the original object. This article makes some detailed analysis in methods mentioned above and it's advantages and disadvantages also gives a integrated application of serialzation for example, apply it to winForm and control class, achieve good result.
出处
《微计算机应用》
2007年第11期1178-1182,共5页
Microcomputer Applications
基金
高等学校博士学科点专项科研基金(20050359006)