IL disassembler shows classes in a .Net executable that I would like to use in my project. How could I use those classes from my own project?
You can click the Browse tab, locate the folder where the library resides and select it. Call the Library class methods in your application : After selecting the library, you can click OK. You can then use the classes and methods of the library like you would use those of the . NET Framework.
In C#, classes and interfaces are reference types. Variables of reference types store references to their data (objects) in memory, and they do not contain the data itself. An object of type Object , string , or dynamic is also a reference type. SportsCar sc = new SportsCar(100);
Create a class library project. Add a new . NET class library project named "StringLibrary" to the solution. Right-click on the solution in Solution Explorer and select Add > New Project.
From your project on Visual Studio add a reference to that executable and you should have access to the public classes it defines. An executable is an assembly like any other.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With