Exemple #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));
 }
Exemple #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));
 }
Exemple #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));
 }
Exemple #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));
 }
Exemple #5
0
 public static object FastInvoke(this Type type, string methodName)
 {
     return(FastInvoker.Get(type).Invoke(null, methodName));
 }
Exemple #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));
 }