DotNet interoperability

Microsoft Dynamics NAV 2016 has added the interoperability feature with the DotNet Programming language. Support for DotNet was first introduced in the previous version of NAV in exchange for automation control. Now in Dynamics NAV 2016, it is possible to use a wider range of .NET objects directly in C/AL programming by creating the .NET type variable, as shown in the following screenshot:

DotNet interoperability

In the preceding screenshot, you can see that, in codeunit 1290, there is a variable of type DotNet with System.Net.HttpWebResponse.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' as Subtype, which cannot be ...

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.