SpriteEditor.FileAssociationHelper.GetCreateSubKey C# (CSharp) Method

GetCreateSubKey() private static method

private static GetCreateSubKey ( RegistryKey parentKey, string subkeyPath ) : RegistryKey
parentKey Microsoft.Win32.RegistryKey
subkeyPath string
return Microsoft.Win32.RegistryKey
        private static RegistryKey GetCreateSubKey(RegistryKey parentKey, string subkeyPath)
        {
            RegistryKey subKey = parentKey.OpenSubKey(subkeyPath, true);
            if (subKey == null)
            {
                subKey = parentKey.CreateSubKey(subkeyPath);
            }
            return subKey;
        }

Same methods

FileAssociationHelper::GetCreateSubKey ( RegistryKey parentKey, string subkeyPath, string valueIfNull ) : RegistryKey