
Mastering Microsoft Dynamics NAV 2016
By :

Microsoft Dynamics NAV 2016 is very rich in .NET interoperability operations. Most of the variables and functions used in .NET are now available or are supported in the C/SIDE environment. This provides us the power of the .NET platform in a C/SIDE environment.
.NET Interoperability features include communication between client- and server-side objects and the introduction of the concept of constructors.
You can call .NET Framework types from C/AL code, which is pretty interesting. In addition to this, you can also call methods, properties, and constructors from C/AL code. It is a straight forward deal.
Follow these steps:
Define a DotNet type variable referring to the .NET Framework assembly type that contains the member:
Define the subtype of the variable from the .NET assembly present:
Call the variable as any other function variable in C/AL code:
By declaring a variable of the DotNet data type and subtyping it to a specific .NET Framework class, you can access all...