Esempio n. 1
0
 public static int Intercept <T>(object instance)
 {
     return((int)Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { }));
 }
Esempio n. 2
0
 public static object Intercept <T>(object arg1, short arg2)
 {
     return(Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { arg1, arg2 }));
 }