views:

39

answers:

0

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?