예제 #1
0
 public override void Amend(Constructor constructor)
 {
     if (constructor.ConstructorInfo.GetParameters().Length == 0)
     {
         constructor.AddAttribute(Attribute <TestAttribute> .Create(typeof(string)));
         constructor.AddAttribute(Attribute <TestAttribute> .Create());
         constructor.AddAttribute(Attribute <TestAttribute> .Create(5));
         constructor.AddAttribute(Attribute <TestAttribute> .Create(new string[] { "Testing", "Two" }));
     }
 }