Hi all,
I 'm trying to use Dictionary in X++, but I got Late bound call warning
Is there any way to solve this warning?
Thanks
Hi all,
I 'm trying to use Dictionary in X++, but I got Late bound call warning
Is there any way to solve this warning?
Thanks
Suppressing the warning isn't rhe best solution. A better approach is actually avoiding the peformance problem.
You should avoid CLRObject - use a concrete type instead. Unfortunately we don't know why you're trying to do it, so we can't tell you what exactly you should do instead.
If you just want something like Dictionary and you don't .NET Interop, simply use the X++ native class for this purpose: Map.
If you need .NET Interop but not necessarily this particular type, consider using a non-generic dictionary: HashTable.
Or wrap the generic collection in a custom class (with a non-generic interface) and use this class in X++.
Also, X++ has some support for generics, but it's not very good.
Hi, You can suppress BP warning as Girish mentioned. However, there is another option as well to explore.
Hi PhucNguyen,
You can suppress the warning.
Refer to the below thread which is similar to the issue.
Thanks,
Girish S.
André Arnaud de Cal... 291,735 Super User 2024 Season 2
Martin Dráb 230,466 Most Valuable Professional
nmaenpaa 101,156