Esempio n. 1
0
 // Returns the list of cached custom attributes of a given type
 public List <TAttribute> GetAttributes <TAttribute>() where TAttribute : CustomAttributeBase
 {
     if (m_attributeCaches.ContainsKey(typeof(TAttribute)))
     {
         AttributeCache <TAttribute> cache = m_attributeCaches[typeof(TAttribute)] as AttributeCache <TAttribute>;
         if (cache != null)
         {
             return(cache.GetTAttributes());
         }
     }
     return(null);
 }