コード例 #1
0
        public override RegistrationAttribute.Key CreateKey(string name)
        {
            string keyName = name.ToUpperInvariant();

            if (!_keys.Contains(name))
            {
                RegistrationKeyMock key = new RegistrationKeyMock();
                _keys.Add(keyName, key);
            }
            return((RegistrationAttribute.Key)_keys[keyName]);
        }
 public override RegistrationAttribute.Key CreateKey(string name)
 {
     string keyName = name.ToUpperInvariant();
     if (!_keys.Contains(name))
     {
         RegistrationKeyMock key = new RegistrationKeyMock();
         _keys.Add(keyName, key);
     }
     return (RegistrationAttribute.Key)_keys[keyName];
 }