September 2017
Beginner to intermediate
562 pages
13h 46m
English
Along with making X++ completely compile in CIL, several language enhancements and constructs have been added to get X++ closer to C#. The following code summarizes some of the new enhancements in X++:
//using keyword for referencing - just like C# using coll = System.Collections;using System.CodeDom;class MyMainClass{ // Declare variables and instantiate them in the class declaration // granular field access mark them public, private or protected. //static, constant and read only member variables static int loop; private const int constValue = 4; public readonly str readOnlyValue = "ReadOnly"; CodeComment comment = new CodeComment("Print something"); // static constructor using TypeNew keyword static void TypeNew() ...