The compilation of an attribute with attribute class T
, positional-argument-list P
and named-argument-list N
, consists of the following steps:
new T(P)
. These steps either result in a compile-time error, or determine a constructor on T
that can be invoked at run-time. Call this constructor C
.Arg
in N
:
Name
be the identifier of the named-argument Arg
.Name
must identify a non-static read-write public field or property on T
. If T
has no such field or property, then a compile-time error occurs.T
, the constructor C
on T
, the positional-argument-list P
and the named-argument-list N
.