?
Solved

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

Posted on 2015-01-13
1
Medium Priority
?
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
ambience earned 1500 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

765 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