c# How write hex value in registry , instead of decimal value?
<p>How can i write in registry DWORD hexadecimal value ? Instead of decimal value, like in this code example ?</p>

<pre><code>RegistryKey key = Registry.LocalMachine;
key = klase.CreateSubKey(@"SYSTEM\CurrentControlSet\Control\Windows");
key.SetValue("CSDVersion2", "100", RegistryValueKind.DWord);
key.Close(); 
</code></pre>

<p>Solution is !</p>

<pre><code>RegistryKey key = Registry.LocalMachine;
key = klase.CreateSubKey(@"SYSTEM\CurrentControlSet\Control\Windows");
key.SetValue("CSDVersion2", Convert.ToInt32("100", 16), RegistryValueKind.DWord);
key.Close(); 
</code></pre>
