Beispiel #1
0
 public static void AddInterceptorAttributes(MethodBuilder methodBuilder, InterceptorAttributeDefinition[] attributes)
 {
     foreach (var customAttribute in attributes)
     {
         methodBuilder.AddCustomAttribute(customAttribute.AttributeData);
     }
 }
Beispiel #2
0
 static public void AddCustomAttribute <T, P1, P2, P3, P4, P5, P6, P7, P8, P9>(this MethodBuilder item, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9)
 {
     item.AddCustomAttribute(typeof(T).GetInstanceConstructor <P1, P2, P3, P4, P5, P6, P7, P8, P9>(), p1, p2, p3, p4, p5, p6, p7, p8, p9);
 }
Beispiel #3
0
 static public void AddCustomAttribute <T, P1, P2, P3, P4, P5>(this MethodBuilder item, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5)
 {
     item.AddCustomAttribute(typeof(T).GetInstanceConstructor <P1, P2, P3, P4, P5>(), p1, p2, p3, p4, p5);
 }
Beispiel #4
0
 static public void AddCustomAttribute <T, P1, P2>(this MethodBuilder item, P1 p1, P2 p2)
 {
     item.AddCustomAttribute(typeof(T).GetInstanceConstructor <P1, P2>(), p1, p2);
 }
Beispiel #5
0
 static public void AddCustomAttribute <T>(this MethodBuilder item)
 {
     item.AddCustomAttribute(typeof(T).GetInstanceConstructor());
 }