I have done a few things. I have created a console app to use as the front-end to the project. Then I have added the DLL as a reference like this:
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 code file(s) where you want to use the DLL.
I have also found that I can add the Project that the DLL was made in into my new Solution file.
I have included the namespace of the DLL in the "using" section of my code.
And the intelligent type I am using recognizes this class when I declare it in my code.
But it does not seem to recognize all the methods (api's) of the class.
What am I doing wrong?
Strangely, "Equals", "GetHashCode", "GetType" and "ToString" are not seen in the DLL's source code for available methods for this class.
Also, I know that if you double click on the added reference, an Object Explorer should come up showing the available methods. This is not what happens:
So now to look closer at the DLL source code.Could there be a problem in the fact that the constructor ( private NookieBookieDoopieDoo() ) is
defined as a privvate? Could there be a problem that the methods are static?
It looks something like this:
-
namespace BladaFlabaDab
-
{
-
-
public class NookieBookieDoopieDoo
-
{
-
-
private static readonly string SomethingYouDoNotNeedToKnow = @"SLAMADAMNADDORK";
-
-
private NookieBookieDoopieDoo()
-
{
-
}
-
-
-
-
public static void Send(string to, string subject, string body)
-
{
-
.
-
.
-
.
-
}
-
-
public static void Send(string to, string replyTo, string subject, string body)
-
{
-
.
-
.
-
.
-
}
-
-
private static void InitializeClient()
-
{
-
.
-
.
-
.
-
}
-
}
-
}
-
Could there be a problem in the fact that the constructor ( private NookieBookieDoopieDoo() ) is
defined as a privvate? Could there be a problem that the methods are static?