将数据集对象转换为字符串&通过插座传递 [英] converting a dataset object into string & passing it through socket
本文介绍了将数据集对象转换为字符串&通过插座传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我正在开发一个客户端服务器应用程序,在该应用程序中,我需要通过套接字将服务器上的数据集对象发送到客户端.
我想将该数据集对象作为字符串传递给客户端,然后在客户端将字符串转换回数据集对象,以便我可以使用它datagrid.
请帮助我.........
Hi guys I am working on a client server application in which I need to send the dataset set object from server to the client through socket.
I want to pass that dataset object as string to the client & then on the client side convert the string back into dataset object so that I can use it datagrid.
Please help me guys .........
推荐答案
您可以序列化它,但这可能会很慢.这里有关于如何解决该问题的描述: MSDN [ ^ ]
You could Serialize it, but that may be slow. There is a description of how and a work around for that here: MSDN[^]
这篇关于将数据集对象转换为字符串&通过插座传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文