views:

94

answers:

0

Seems like there should be an easy one-liner here:

Within my ObservableCollection derived class I binary serialize it to disk: binFormatter.Serialize(stream, this);

How do I deserialize to my this object reference: This does not work:

this = binFormatter.Deserialize(stream) as MyAwesomeData;

Do I need to Clear the collection and add.