serializable Class

  • Thread starter Thread starter sapsy
  • Start date Start date
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
 
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
 
Back
Top