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
Post a Comment