Пример #1
0
 public virtual object GetValue(string name)
 {
     try
     {
         return(Exists() ? WrappedKey.GetValue(name) : null);
     }
     catch (Exception ex) when(!ExceptionHandling.NotExpectedRegistryException(ex))
     {
         throw new RegistryException(ex.Message, Name + "@" + name, ex);
     }
 }
Пример #2
0
 /// <summary>
 /// Retrieves the value associated with the specified name.
 /// Returns a <c>null</c> reference if the name/value pair
 /// does not exist in the registry.
 /// </summary>
 /// <param name="name">
 /// The name of the value to retrieve.
 /// </param>
 /// <returns>
 /// The value associated with name, or a <c>null</c> reference
 /// if name is not found.
 /// </returns>
 public override object GetValue(string name)
 {
     return(WrappedKey.GetValue(name));
 }