# Interacting with .NET programs

One of the distinctive features of using .NET in Mathematica is that in order to use all the capabilities of .NET, we don't need to write code at all. You can write a program right within the Mathematica environment. In this section, you will learn how to download .NET assemblies and types directly to Mathematica, as well as how to create objects from these types, call methods, properties, and so on.

In order to enable Mathematica's functions to interact with .NET, you need to download the `NETLink`

package:

Needs["NETLink`"]

To run the .NET environment, it's necessary to run `InstallNET[]`

. In case of an active development and a change of .NET classes to restart the environment, it's convenient to `run`

`ReinstallNET[]`

.

Using `LoadNETAssembly`

, we will load a .NET assembly into the Mathematica environment:

LoadNETAssembly["System.Web"]

The .NET types are loaded with the help of the `LoadNETType`

function:

LoadNETType["System.Windows...