コード例 #1
0
 static FastReflectionCaches()
 {
     MethodInvokerCache      = new MethodInvokerCache();
     PropertyAccessorCache   = new PropertyAccessorCache();
     FieldAccessorCache      = new FieldAccessorCache();
     ConstructorInvokerCache = new ConstructorInvokerCache();
 }
コード例 #2
0
 public static T FastInvoke <T>(this MethodInfo info, object instance, params object[] parameters) =>
 (T)MethodInvokerCache.Get(info).Invoke(instance, parameters);