/IronPython_Main/Runtime/Tests/LinqDlrTests/corelinq/Source/APTCA/FunkyDelegate/User.cs

# · C# · 23 lines · 10 code · 2 blank · 11 comment · 0 complexity · 2a8ebdc72e2b0ed610cd0e7573019262 MD5 · raw file

  1. using System;
  2. using System.Linq.Expressions;
  3. public class C
  4. {
  5. public static void M(int x1, int x2, int x3, int x4, int x5) { }
  6. static int Main()
  7. {
  8. return 0;
  9. //TODO: evaluate if we can get ms.scripting to trigger linq features here.
  10. /* try
  11. {
  12. Expression<Action<int, int, int, int, int>> e = (x1, x2, x3, x4, x5) => M(x1, x2, x3, x4, x5);
  13. e.Compile()(0, 0, 0, 0, 0);
  14. }
  15. catch (ArgumentException)
  16. {
  17. return 0;
  18. }
  19. return 1;*/
  20. }
  21. }