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