ComponentFactory.Krypton.Ribbon.EvaluationMonitor.FindBaseKey C# (CSharp) Method

FindBaseKey() private method

Find the base key for this product
private FindBaseKey ( RegistryKey parent ) : RegistryKey
parent Microsoft.Win32.RegistryKey The key to search under
return Microsoft.Win32.RegistryKey
        private RegistryKey FindBaseKey(RegistryKey parent)
        {
            string[] classIDs = parent.GetSubKeyNames();
            foreach (string classID in classIDs)
            {
                RegistryKey key = parent.OpenSubKey(classID);
                object keyValue = key.GetValue(null);
                if (keyValue is byte[])
                {
                    if (Equals((keyValue as byte[]), _productData))
                    {
                        return key;
                    }
                }
                key.Close();
            }
            return null;
        }