【发布时间】:2017-06-23 22:35:42
【问题描述】:
如下所示,在我的 ActionFilter 中,我尝试获取 ActionExecutingContext.ActionDescriptor 的 ActionName 和 MethodInfo。 但是编译器说 ActionDescriptor 不包含 ActionName 和 MethodInfo 的定义。但如果我调试应用程序,我可以看到 ActionDescriptor 包含这些属性(见下图)。 我正在使用 ASP .NET Core,但我不知道问题可能出在哪里。
【问题讨论】:
标签: c# asp.net asp.net-core