Trigger function on deserialization
Posted
by Tom Savage
on Stack Overflow
See other posts from Stack Overflow
or by Tom Savage
Published on 2010-05-24T10:07:44Z
Indexed on
2010/05/24
10:11 UTC
Read the original article
Hit count: 212
I have a class with a number of fields which are normally calculated in the constructor from other data in the class. They are not serialized to XML because any changes to the rest of the data will likely require their recalculation.
Is there a way I can set up a function call to be triggered on deserialization?
© Stack Overflow or respective owner