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

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -