Example #1
0
 public override IEnumerable <FilterAttribute> GetFilterAttributes(bool useCache)
 {
     if (useCache && GetType() == typeof(ReflectedActionDescriptor))
     {
         // Do not look at cache in types derived from this type because they might incorrectly implement GetCustomAttributes
         return(ReflectedAttributeCache.GetMethodFilterAttributes(MethodInfo));
     }
     return(base.GetFilterAttributes(useCache));
 }