Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exposing the methods of a DLL in C#

After someone creates a DLL in C# using the Microsoft Visual development environment, how would another programmer take that code, make a new project that includes the DLL's source and make a GUI that uses the DLL'S API?

I have already done the following four steps:

1) In the Solution Explorer right-click "References" and select "Add Reference ...".

2) Select the "Browse" tab.

3) Navigate to the DLL and select it.

4) Add the appropriate "using" directive to the top of the code.

What is next? After I declare a new object, how do I see what methods to use?

like image 892
xarzu Avatar asked Mar 16 '09 22:03

xarzu


People also ask

How can I see the methods in a DLL?

If a DLL is written in one of the . NET languages and if you only want to view what functions, there is a reference to this DLL in the project. Then doubleclick the DLL in the references folder and then you will see what functions it has in the OBJECT EXPLORER window.

What is DLL in C?

In Windows, a dynamic-link library (DLL) is a kind of executable file that acts as a shared library of functions and resources. Dynamic linking is an operating system capability. It enables an executable to call functions or use resources stored in a separate file.


1 Answers

View Menu -> Object Browser

You should be able to look at the objects/methods and so on contained in the DLL and publicly exposed.

like image 50
Quintin Robinson Avatar answered Sep 27 '22 23:09

Quintin Robinson