Exposing the methods of a DLL in C#

xarzu picture xarzu · Mar 16, 2009 · Viewed 14.1k times · Source

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?

Answer

Quintin Robinson picture Quintin Robinson · Mar 16, 2009

View Menu -> Object Browser

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