1 namespace System.Web.Mvc {
2 using System.Diagnostics.CodeAnalysis;
5 public const int DefaultOrder = -1;
7 public Filter(object instance, FilterScope scope, int? order) {
8 if (instance == null) {
9 throw new ArgumentNullException("instance");
13 IMvcFilter mvcFilter = instance as IMvcFilter;
14 if (mvcFilter != null) {
15 order = mvcFilter.Order;
20 Order = order ?? DefaultOrder;
24 public object Instance {
34 public FilterScope Scope {