Chapter 4.  .NET Interoperability in C/AL

In this chapter, we will cover the following recipes:

  • Using .NET assemblies in C/AL
  • Understanding static classes and methods
  • Developing server-side extensions
  • Developing client-side extensions
  • Working with generics in C/AL
  • Working with interfaces
  • Accessing collections with the FOREACH statement
  • Working .NET strings and arrays in C/AL
  • Invoking .NET methods via reflection
  • Handling exceptions with try functions
  • Handling .NET events in C/AL
  • Developing your own .NET class
  • Starting processes in separate threads

Introduction

Application code in dynamics NAV is based on C/AL--a domain-specific language for data manipulation. The language suits perfectly well for the set of tasks it is intended to solve and it covers most of the user demands, but problems beyond the capabilities of C/AL do arise in practice from time to time. In such cases, when the capacity of C/AL is insufficient, .NET languages, such as C#, C++ .NET, or VB.NET, can come to the rescue. Assemblies developed in .NET languages can be seamlessly integrated in NAV application code and extend functionality beyond the reaches of pure C/AL.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.3.104