Serialization problem

Posted by sandhya on Stack Overflow See other posts from Stack Overflow or by sandhya
Published on 2010-03-12T09:43:51Z Indexed on 2010/03/12 9:47 UTC
Read the original article Hit count: 151

Filed under:
|

Hi Is it possible to break the serialization in following scenario?

       GetObjectValue(StreamingInfo info, ....)
        {
          info.AddValue("string1", subobject1);
          info.AddValue("string2", Subobject2);
          .
          .
        }

Now my scenario is after serializing subobject1, if the size of the stream exceeds some size limit, can i stop serializing remaining subobjects? if yes, how? how can i check the size of the stream into which i am serializing in the middle of serialization process?

© Stack Overflow or respective owner

Related posts about c#

Related posts about serialization