DLL
Dll's are merely a collection of classes that can be used by other applications.
Home | Applications | Documentation | Transport | Personal |
DLL
Dll's are merely a collection of classes that can be used by other applications.
Creating a dll
Here is the really really really important bit if you have a memory like myself. When
creating a project in Visual Studio, select the
Class library project type. See below.
Now change the default 'class1' name from the solution explorer, by right clicking and
selecting the 'rename' option and you're ready to go.
Using a dll
Once the dll has been saved, you can use it in other applications by simply referencing it. Once this has been referenced, we need to define the namespace using the 'using' statement. After that, the classes within the namespace can be instantiated as any class within the project.