예제 #1
0
 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);
     }
 }
예제 #2
0
 public object this[string property, Func <object> defValue]
 {
     get { return(this[property] ?? ControlProperty.GetValue(defValue())); }
 }