Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Serialization of derived class inherited from a base class that is non serializable

Posted on 2008-11-11
Medium Priority
Last Modified: 2013-12-17
I have a class derived inherited from System.Web.UI.MobileControls.MobileControl

class derived:System.Web.UI.MobileControls.MobileControl


I want to serialize this class, but the base class System.Web.UI.MobileControls.MobileControl
is not serializable.
Is there an alternative to serialize the derived class without serializing the base class. ?
Question by:sharpodal
LVL 23

Expert Comment

by:Jens Fiederer
ID: 22936617
Perhaps you could make an adapter class that is NOT derived from a non-serializable class, but which CONTAINS a (non-serialized) instance of your derived class.

This instance would be created upon deserialization, and configured with serializable information in your adapter class....
LVL 26

Accepted Solution

Anurag Thakur earned 2000 total points
ID: 22936673
have a look at the following link - there are 2 links provided in that link might be helpful for you - ragi

Author Closing Comment

ID: 31515522

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

578 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