Serialize a .net Object directly to a NetworkStream using Json.net -


is there way have json.net serialize object directly networkstream?

in other words, have json.net send serialized result network serializes object (in streaming fashion).

i avoid having serialize object memory , send via networkstream.

any thoughts?

regards

you can create textwriter on top of networkstream, , serialize textwriter; or can create jsontextwriter on top of textwriter , serialize that.

you don't need serialize to, say, temporary string or byte array first.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c# - Setting Server Bindings of IIS 6.0 Programmatically -

What do you think are the useless tags in HTML? -