Пример #1
0
 public ComplexType EMethod(string methodName, Action<ILGenerator> actionLoadValue)
 {
     MethodInfo info = Struction.Methods[methodName];
     if (info.IsStatic)
     {
         actionLoadValue(il);
         il.REmit(OpCodes.Call, info);
     }
     else
     {
         This();
         actionLoadValue(il);
         il.REmit(OpCodes.Callvirt, info);
     }
     il.BoolInStack(info.ReturnType);
     return EModel.CreateModelFromAction(null, Struction.TypeHandler);
 }