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);
         }
     }
 }
Exemplo n.º 2
0
 public override object this[string keyword]
 {
     get
     {
         MySqlConnectionStringOption option = this.GetOption(keyword);
         return(option.Getter(this, option));
     }
     set
     {
         MySqlConnectionStringOption option = this.GetOption(keyword);
         option.Setter(this, option, value);
     }
 }