Named parameters of the attribute constructor.
You are currently setting named parameters:
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
This is time from C # 1, but now there are object constructors:
new Foo(explicit, values) { Implicit = value }
This will result in the following attribute constructor:
[AttributeUsage(AttributeTargets.Method) { Inherited = false, AllowMultiple = true }]
Dykam
source share