attribute的named argument和普通method不一样 http://msdn.microsoft.com/en-us/library/aa664614(v=vs.71).aspx Attribute classes can have positional parameters and named parameters. Each public instance constructor for an attribute class defines a valid sequence of positional parameters for that attribute class. Each non-static public read-write field and property for an attribute class defines a named parameter for the attribute class.
【在 v******n 的大作中提到】 : attribute的named argument和普通method不一样 : http://msdn.microsoft.com/en-us/library/aa664614(v=vs.71).aspx : Attribute classes can have positional parameters and named parameters. Each : public instance constructor for an attribute class defines a valid sequence : of : positional parameters for that attribute class. Each non-static public : read-write field and property for an attribute class defines a named : parameter : for the attribute class.