I have several large object graphs that I serialize, and some of them take a few seconds to deserialize.
At this point, I am quite happy with my little “Please wait ...” field, which appears and then disappears at the end, but I just played with the idea of having some kind of progress indicator in case deserialization starts longer.
There seems to be no way to get the progress of the built-in Deserialize() method Deserialize() BinaryFormatter object. I suspect that if such a function were enabled, there would be some kind of asynchronous callback that will interrogate whenever a block of bytes is read from the stream.
Have any of you seen implementing a behavior like ProgressBar with object serialization / deserialization?
Ozzah source share