public void Clean(MySqlBaseConnectionStringBuilder builder)
 {
     builder.Remove(Keyword);
     if (Synonyms == null)
     {
         return;
     }
     foreach (var syn in Synonyms)
     {
         builder.Remove(syn);
     }
 }
        public override bool Equals(object obj)
        {
            MySqlBaseConnectionStringBuilder other = obj as MySqlBaseConnectionStringBuilder;

            if (obj == null)
            {
                return(false);
            }

            if (this.values.Count != other.values.Count)
            {
                return(false);
            }

            foreach (KeyValuePair <string, object> kvp in this.values)
            {
                if (other.values.ContainsKey(kvp.Key))
                {
                    object v = other.values[kvp.Key];
                    if (v == null && kvp.Value != null)
                    {
                        return(false);
                    }
                    if (kvp.Value == null && v != null)
                    {
                        return(false);
                    }
                    if (kvp.Value == null && v == null)
                    {
                        return(true);
                    }
                    if (!v.Equals(kvp.Value))
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }

            return(true);
        }