internal void SetValue(string keyword, object value) { MySqlConnectionStringOption option = this.GetOption(keyword); option.ValidateValue(ref value); option.Clean(this); if (value != null) { lock (this) { this.values[option.Keyword] = value; base[keyword] = value; } } }
internal void SetInternalValue(string keyword, object value) { MySqlConnectionStringOption option = GetOption(keyword); option.ValidateValue(ref value); // remove all related keywords option.Clean(this); if (value != null) { lock (this) { // set value for the given keyword values[option.Keyword] = value; base[keyword] = value; } } }
internal void SetValue(string keyword, object value) { MySqlConnectionStringOption option = this.GetOption(keyword); option.ValidateValue(ref value); option.Clean(this); if (value != null) { bool flag = false; try { Monitor.Enter(this, ref flag); this.values[option.Keyword] = value; base[keyword] = value; } finally { if (flag) { Monitor.Exit(this); } } } }