External Object Example: Native Object (.NET)

Official Content
This documentation is valid for:

This sample shows how to include an external .Net Assembly in GeneXus. The assembly returns the result of multiplying two numeric parameters.

To include an external .Net Assembly, follow the steps below: 

    1. In the New Object dialog box, select External Object. 

EO - New1

   2. Choose the “.net Native” option and select the path to the assembly.

    EO - New2             EO - New3

   3. Check the Multiply method and Press "Import".

    EO - New4     

   4. To interact with this “external object”, define a variable based on the associated object and use the available Methods.

       EO - New5     

   5. Execute (press F5).  

     EO - New6     

Note: the Native code of this assembly (ClassLibrary1.dll) was created using the following code:

EO - New7

To see the Video press here (swf file) or here (wmv file).