예제 #1
0
 public static int Intercept <T>(object instance)
 {
     return((int)Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { }));
 }
예제 #2
0
        public void Returns(object retVal)
        {
            _retVal = retVal;

            Interceptor.SetIntercept(_setupExpr, @params => retVal);
        }
예제 #3
0
 public static object Intercept <T>(object arg1, short arg2)
 {
     return(Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { arg1, arg2 }));
 }
예제 #4
0
 public void Start()
 {
     Interceptor.Start(this);
 }