public override object this[string keyword] { get { MySqlConnectionStringOption opt = GetOption(keyword); if (opt.BaseGetter != null) { return(opt.BaseGetter(this, opt)); } else if (opt.Getter != null) { return(opt.Getter(this, opt)); } else { throw new ArgumentException(Resources.KeywordNotSupported, keyword); } } set { MySqlConnectionStringOption opt = GetOption(keyword); if (opt.BaseSetter != null) { opt.BaseSetter(this, opt, value); } else if (opt.Setter != null) { opt.Setter(this, opt, value); } else { throw new ArgumentException(Resources.KeywordNotSupported, keyword); } } }
public override object this[string keyword] { get { MySqlConnectionStringOption opt = GetOption(keyword); return(opt.BaseGetter(this, opt)); } set { MySqlConnectionStringOption opt = GetOption(keyword); opt.BaseSetter(this, opt, value); } }