Ejemplo n.º 1
0
 private void AddToAttributeCache(string key, object value)
 {
     if (!AttributeCache.ContainsKey(key))
     {
         AttributeCache.Add(key, value);
     }
 }
Ejemplo n.º 2
0
 private void AddToAttributeCache <T>(string key, DoFunc <T> function)
 {
     if (!AttributeCache.ContainsKey(key))
     {
         AttributeCache.Add(key, function.Invoke());
     }
 }