PageRenderTime 50ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
  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. }