// Token: 0x060004E4 RID: 1252 RVA: 0x00012910 File Offset: 0x00010B10 protected override Exception ReadValueInternal <T>(string valueName, T defaultValue, out object value) { object tmpValue = null; value = defaultValue; if (this.m_key == null) { RegistryParameterKeyNotOpenedException ex = new RegistryParameterKeyNotOpenedException(this.m_registryKeyStr); return(new RegistryParameterReadException(valueName, ex.Message, ex)); } Exception ex2 = RegistryUtil.RunRegistryFunction(delegate() { tmpValue = this.m_key.GetValue(valueName, defaultValue); }); if (ex2 == null) { value = tmpValue; } else { ex2 = new RegistryParameterReadException(valueName, ex2.Message, ex2); } return(ex2); }
// Token: 0x060004E7 RID: 1255 RVA: 0x00012A7C File Offset: 0x00010C7C private Exception RunSetValueFunc(string valueName, Action setValueFunc) { if (this.m_key == null) { RegistryParameterKeyNotOpenedException ex = new RegistryParameterKeyNotOpenedException(this.m_registryKeyStr); return(new RegistryParameterWriteException(valueName, ex.Message, ex)); } Exception ex2 = RegistryUtil.RunRegistryFunction(setValueFunc); if (ex2 != null) { ex2 = new RegistryParameterWriteException(valueName, ex2.Message, ex2); } return(ex2); }