Program.cs 743 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Windows.Forms;
  3. using FormulaEnginePoC.CSharpProvider;
  4. using FormulaEnginePoC.UI;
  5. namespace FormulaEnginePoC
  6. {
  7. internal static class Program
  8. {
  9. /// <summary>
  10. /// 应用程序的主入口点。
  11. /// </summary>
  12. [STAThread]
  13. private static void Main()
  14. {
  15. Application.EnableVisualStyles();
  16. Application.SetCompatibleTextRenderingDefault(false);
  17. Application.Run(new SampleForm());
  18. }
  19. private static void Test()
  20. {
  21. var com = new ExpressionCompiler<Func<int, string, string>>("param0+param1", null);
  22. com.Compile();
  23. var ret = com.CompiledDelegate(1, "1");
  24. }
  25. }
  26. }