Access .NET executables and resources directly from a notebook.

Using Static Methods...

Load the .NET/Link package

Load the .NET/Link package using Get (<<):

Click for copyable input

Launch the .NET runtime

Launch the local .NET runtime with InstallNET:

Click for copyable input

Load an assembly

Load an assembly into the Wolfram kernel using LoadNETAssembly:

  • By default, LoadNETAssembly will search relative to $HomeDirectory for files. You can also specify an assembly name, an absolute file path or a directory to search.

Load a type

Load a type from the assembly using LoadNETType:

Out[2]=

Use methods

You can now use static methods and properties from the type directly in computations:

Out[3]=

Using a Class Instance...

Load the .NET/Link package

Load the .NET/Link package using Get (<<):

Click for copyable input

Launch the .NET runtime

Launch the local .NET runtime with InstallNET:

Click for copyable input

Load an assembly

Load an assembly into the Wolfram kernel using LoadNETAssembly:

  • By default, LoadNETAssembly will search relative to $HomeDirectory for files. You can also specify an assembly name, an absolute file path or a directory to search.

Create a type instance

Make a new instance of a type using NETNew:

Out[5]=

Call methods

You can now use methods and properties from this instance directly in computations:

Out[6]=
Notes

For a full explanation of .NET/Link capabilities, refer to the .NET/Link User Guide.