Windows Phone Developers

Sunday, July 20, 2008

Solution: Class must implement 'Sub OnDeserialization(sender As Object)' for interface 'System.Runtime.Serialization.IDeserializa

Solution: Class 'CVideoLibraryOrder' must implement 'Sub OnDeserialization(sender As Object)' for interface 'System.Runtime.Serialization.IDeserializationCallback'.

The above error occurs if the IDeserializationCallback.OnDeserialization is not implemented in the class, when the class has a non-serializable member

Sub IDeserializationCallback_Deserialize(ByVal sender As Object) Implements IDeserializationCallback.OnDeserialization

' Calculate the total after Deserialization

VTotal = VPrice * VQty

End Sub

Implements the ISerializable interface and is called back by the deserialization event when deserialization is complete.


Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

No comments:

Post a Comment