как я могу разобрать List в свой фильтр пользовательских действий (например, входные параметры)?
public class CustomFilter : ActionFilterAttribute
{
public List<MyEnumType> InputParameter { get; set; }
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
base.OnActionExecuting(filterContext);
}
}
[CustomFilter(InputParameter = new List<MyEnumType>() { MyEnumType.Type } )]
public SomeActionInController()
{
}
Я получил ошибку
'InputParameter' is not a valid named attribute argument because it is not a valid attribute parameter type