Data contract serialization from X++

You can decorate classes in AX2012 with DataContractAttribute in much the same way as in .NET with System.Runtime.Serialization.DataContractAttribute. The same is true also for DataMemberAttribute. This is a simple data contract class in X++: [DataContractAttribute] class ItemContract { str name;   [DataMemberAttribute("Name")] public str parmName(str _name = name) { name = _name; return name; } …

Continue reading ‘Data contract serialization from X++’ »

X++ to CIL

Dynamics AX 2012 is able to generate Common Intermediate Language from X++. That allows much more code running in Common Language Runtime and also switching between X++ runtime and CLR can be greatly reduced, both having positive impact on performance. Many developers see it as a bit of black magic, which sometimes causes avoidable difficulties. …

Continue reading ‘X++ to CIL’ »