Esempio n. 1
0
 public static object FastInvoke(this object target, LambdaExpression expression, params object[] args)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     return(FastInvoker.Get(target.GetType()).Invoke(target, expression, args));
 }
Esempio n. 2
0
 public static object FastInvoke(this object target, Type[] genericTypes, string methodName, params object[] args)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     return(FastInvoker.Get(target.GetType()).Invoke(target, genericTypes, methodName, args));
 }
Esempio n. 3
0
 public static object FastInvoke(this object target, string methodName)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     return(FastInvoker.Get(target.GetType()).Invoke(target, methodName));
 }
Esempio n. 4
0
 public static object FastInvoke(this object target, Type[] genericTypes, LambdaExpression expression)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     return(FastInvoker.Get(target.GetType()).Invoke(target, genericTypes, expression));
 }
Esempio n. 5
0
 public static object FastInvoke(this Type type, string methodName)
 {
     return(FastInvoker.Get(type).Invoke(null, methodName));
 }
Esempio n. 6
0
 public static object FastInvoke(this Type type, Type[] genericTypes, string methodName, params object[] args)
 {
     return(FastInvoker.Get(type).Invoke(null, genericTypes, methodName, args));
 }