Serialization and the Yield statement

Viewed 2176

Is it possible to serialize a method containing yield statements (or a class that contains such a method) such that when you rehydrate the class, the internal state of the generated iterator is retained?

4 Answers
Related