.NET interoperability

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:

  1. Define a DotNet type variable referring to the .NET Framework assembly type that contains the member:

Get Mastering Microsoft Dynamics NAV 2016 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.