.Net中的对象序列化 [英] Object Serialization in .Net

查看:165
本文介绍了.Net中的对象序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我想要一些有关ASP.Net中对象序列化的信息.我已经在网上阅读了一些信息,但仍然不知道如何以及何时应用此概念.

谢谢...

Dear All,

I want some information regarding object serialization in ASP.Net. I have read some info on net but still I don''t know how and when to apply this concept.

Thanks...

推荐答案

我使用 http://json.codeplex.com /非常简单,快速)
I use http://json.codeplex.com/ It is very easy and fast)


检查
http://msdn.microsoft.com/en-us/library/ms973893.aspx [ ^ ]
使用C#进行对象序列化 [
Check
http://msdn.microsoft.com/en-us/library/ms973893.aspx[^]
Object Serialization using C#[^]


在使用.NET v.4.0时,我建议您专注于数据合同.这是存储和加载任何数据的最全面,最无干扰的方法.

请参阅:
http://msdn.microsoft.com/en-us/library/ms733127.aspx [ ^ ].

另请参阅我过去提倡使用此方法的答案:
如何在我的表单应用程序? [ ^ ],
创建属性文件... [反序列化json字符串数组 [
As you are using .NET v.4.0, I would advise you to focus on Data Contract. This is the most comprehensive and non-intrusive method of storing and loading any data.

Please see:
http://msdn.microsoft.com/en-us/library/ms733127.aspx[^].

See also my past answer where I advocate this approach:
How can I utilize XML File streamwriter and reader in my form application?[^],
Creating property files...[^],
deseralize a json string array[^].

—SA


这篇关于.Net中的对象序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆