serializable Class

S

sapsy

hi,
I have a class which uses Microsoft.Win32.RegistryKey
class, and i am trying to Serialize this class but i get the following
Error... anu ponter will be really helpfull..

Message="Type 'Microsoft.Win32.RegistryKey' in Assembly 'mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is
not marked as serializable."



Thanks
Rohit Sapru
 
G

G Himangi

You can either mark the RegistryKey field with [NonSerialized] or if you
must serialize it, use custom serializing by implementing ISerializable.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top