Tips for CIL debugging: Collection classes

In some cases, you can make your debugging much easier if you debug CIL instead of the original X++ code. Working with collection classes (lists, maps, etc) is such a case. For example, the following picture shows a map (mapping customer IDs to CustTable records, e.g. for caching) as displayed by the AX debugger: If …

Continue reading ‘Tips for CIL debugging: Collection classes’ »

C#: Array and collection intializers

I was recently asked few questions about array and collection intializers in C#. Because it may be useful for others as well, I decided to write the answer down in this form. All information below is valid for C# in version 3.0 or higher. Arrays A single-dimensional array is normally declared and initialized this way: string[] …

Continue reading ‘C#: Array and collection intializers’ »