Advanced Forum Search Results
-
OK, it's simple... before start deserialization runtime calls
FormatterServices.GetUninitializedObject
which creates instance WITHOUT calling any constructors... so forget all "constructors fire first" rules ;)
and the thing is that so far I can't see any REAL reason for doing it that way... so silly ...
-
Yes in WCF you can use [OnDeserialized] attribute
But it haven't been included in SL2 runtime ;(((
Shame!
-
-
Unfortunately at the moment it doesn't
http://msdn.microsoft.com/en-us/library/cc896571(VS.95).aspx
And it's a HUGE problem, because WCF doesn't call the default constructors (which is pretty stupid AFAIU) and thus there is no way to provide some initialization logic ;(