Is there an easier way of creating a registry volatile subkey in .net?
- by Simon
So far I have the below which is taken from
http://www.danielmoth.com/Blog/volatile-registrykey.aspx
public static class RegistryHelper
{
public static RegistryKey CreateVolatileSubKey(RegistryKey rk, string subkey, RegistryKeyPermissionCheck permissionCheck)
{
var rk2 = rk.GetType();
const BindingFlags bfStatic =…