Solved

Is it possible to get an MVVM ViewModel to be serialised for use by the SuspensionManager?

Posted on 2015-01-13
1
246 Views
Last Modified: 2015-01-27
When deriving a ViewModel from Galasoft MVVMLight's ViewModelBase or Prism's BindableBase the SuspensionManager will fail because the both ViewModelBase and BindableBase are not serialisable.
Is there away around this so that the contract serialiser will work or are the only options to either ditch the base class or rework the SuspensionManager to use JSON deserialization instead?
Are there any good code samples kicking around that reworks the SuspensionManager?
0
Comment
Question by:Navigator101
1 Comment
 
LVL 22

Accepted Solution

by:
ambience earned 500 total points
ID: 40548591
It should be possible to implement ISerializable on the most derived class and write serialization code there. This is how you get around the limitations of base classes not being serializable.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question