public RegKey(RegKey BaseDir, string Name)
 {
     if (BaseDir == null)
     {
         throw new ArgumentNullException();
     }
     Root      = BaseDir;
     this.Name = Name;
 }
        /// <summary>
        /// Same as <see cref="GetSubKey"/>, but this method forces the creation
        /// where <see cref="GetSubKey"/> just returns the object which will create
        /// itself when needed (a value is set)
        /// </summary>
        /// <param name="Name"></param>
        /// <returns></returns>
        public RegKey CreateSubKey(string Name)
        {
            RegKey key = GetSubKey(Name);

            if (!key.Exists())
            {
                key.Create();
            }
            return(key);
        }
 internal FileStarterShellMenu(FileStarterShell owner, string Name)
     : base(owner, Name)
 {
     this.Owner = owner;
     commandKey = new RegKey(this, "command");
 }