public string Get(ConfigurationParameter param) { string result = RealGet(param); if (result == null) { result = param.DefaultValue; } return(result); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null || GetType() != obj.GetType()) { return(false); } ConfigurationParameter other = (ConfigurationParameter)obj; if ((GetUniqueName() == null && other.GetUniqueName() != null) || !GetUniqueName().Equals(other.GetUniqueName())) { return(false); } return(true); }
public void PutBool(ConfigurationParameter param, bool value) { Put(param, Convert.ToString(value)); }
public bool GetBool(ConfigurationParameter param) { return(Convert.ToBoolean(Get(param))); }
public void PutInt(ConfigurationParameter param, int value) { Put(param, Convert.ToString(value)); }
public int GetInt(ConfigurationParameter param) { return(Convert.ToInt32(Get(param))); }
protected abstract void RealPut(ConfigurationParameter param, string value);
protected abstract string RealGet(ConfigurationParameter param);
public void Put(ConfigurationParameter param, string value) { RealPut(param, value); }