关于对象序列化的怀疑 [英] Doubt regarding object serialization

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

问题描述

大家好,

如果我使用C#序列化对象,是否可以使用Java之类的任何其他语言对对象进行反序列化?

Hi All,

If I serialize an object in C#, can I deserialize the object using any other language like Java?

推荐答案

序列化只是记录对象状态的行为,并且可以通过多种方式完成.对于要用一种语言序列化的对象并用另一种语言复活的对象,要做的就是使两种语言都具有该对象的定义以及对该对象进行序列化和反序列化的方法.在Web服务等情况下,这是非常常见的.
Serialisation is just the act of recording the state of an object, and can be done in many ways. For an object to be serialised in one language, and ressurected in another language, all that needs to be done is for both languages to have a definition of that object and a means of serialising and deserialising that object. This is done very often in the case of Web Services etc.


请看下面类似的问答"讨论.

如何将XML数据从C#反序列化为Java?
Have a look at similar Question-Answer discussion below.

How to deserialize xml data from c# to java?


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

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