Is there a way to signalize an object its successful deserialization?
Posted
by mafutrct
on Stack Overflow
See other posts from Stack Overflow
or by mafutrct
Published on 2010-04-01T23:51:07Z
Indexed on
2010/04/01
23:53 UTC
Read the original article
Hit count: 376
netdatacontractserializer
|.net-3.5
I'm using NetDataContractSerializer
. After successfully deserializing an object, is there a way to tell the object to finish its construction? I'm thinking along the lines of:
[DataContract]
class Foo
{
[DataMember]
int i;
[SerializationCompletedEvent]
void SerializationCompleted ()
{
i = i + 7;
}
}
© Stack Overflow or respective owner