Hi, I tried the code on X++ and seems to not work...Am In missing something, or actually you really cannot work with simple delegates? This is the example: public class A { System.Threading.Tasks.Task taskResult; public static void DoNothing() { } public System.Threading.Tasks.Task Handle() { taskResult = new System.Threading.Tasks.Task(DoNothing); return taskResult; } } Trying to pass the DoNothing function does not work (it does on C#), and no way with Static references on the function definition, class... Thanks so much.... P.S.: I am a .NET developer and I am making a library to be consumed from X++, so X++ programmers can work with that, so moving code to X++ (for the X++ programmers is not an option...They are working with Dynamics 2012 R3). So if X++ interop is so limited on .NET I'd go on another way...
↧