Ejemplo n.º 1
0
 public IEnumerable <T> FindAttributes <T>()
     where T : class
 {
     return(_attributeCache.TryGetValue(typeof(T), out var cachedAttribs)
 ? (IEnumerable <T>)cachedAttribs
 : TargetType.FindAttributes <T>().Concat(Method.FindAttributes <T>()).ToArray());
 }