📜  aspnet 核心 webapi ActionDescriptor 不包含 GetCustomAttributes - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:56.779000             🧑  作者: Mango

代码示例1
var attrib = (filterContext.ActionDescriptor as ControllerActionDescriptor).MethodInfo.GetCustomAttributes().FirstOrDefault();