Working with External Assemblies

Article number: KB000026

General Information

Related blocks:

Description

Creation of an external assembly is described in .NET assembly.

Below is an example of working with an external assembly:

A .NET assembly representing an external assembly is available. A DLL file loaded to the assembly is obtained after compiling the following C# code: Source DLL.

In the custom .NET assembly, connect the obtained external assembly using the Repository Assemblies tab. After this you can use external assembly resources.

Example 1

Access using qualified identifiers:

Sub Main;
Var
    f: UserFunc.UserClass = New UserFunc.UserClass;
    x1, x2: Double;
Begin
    x1 := f.x1(123);
    x2 := f.x2(123);
End Sub Main;

Example 2

Access using the Imports operator:

Imports UserFunc;
Sub Main;
Var
    f: UserClass = New UserClass;
    x1, x2: Double;
Begin
    x1 := f.x1(123);
    x2 := f.x2(123);
End Sub Main;

See also:

Developers Knowledge Base