views:

36

answers:

3

I write the programm which work with Windows Registry i want to save some Microsoft::Win32::RegistryKey in binary mode. I want to use Serialization but that class not serialazale. do i need to create my own serialazable class or there is some more easy way to save this class in binary mode in .net?

A: 

You should either create your own serializable class to do that, or you could create a method for saving the relevant data from the non-serializable class.

Venemo
A: 

how do you plan to serialize it? it is just a wrapper over winapi structure. you can't set any property of it, they are read-only.

Andrey
A: 

You have one option here: Create your own "wrapper" for your needs (it can be serializable class as well).

Lukas Šalkauskas