ControlProperty IControlProperties.this[string property, object initValue] { get { if (m_properties.ContainsKey(property)) { return(m_properties[property]); } var res = new ControlProperty(initValue); m_properties.Add(property, res); return(res); } }
public object this[string property, Func <object> defValue] { get { return(this[property] ?? ControlProperty.GetValue(defValue())); } }