D
Daniela Roman
hello,
I want to create a class in a library:
public class GetHello
{
private string aa = "Hello world";
public GetHello()
{
//
// TODO: Add constructor logic here
//
}
public string GetContent()
{
return aa;
}
}
Then I create a simple project and I want to use the GetContent to return
the string.
What I did was to add a reference to the dll created by the library class,
from the Projects tab.
then I create an object:
MyData_Object myObj = new MyData_Object();
trying to use myObj, it does not see the method I created earlier:
GetContent
Thank you
I want to create a class in a library:
public class GetHello
{
private string aa = "Hello world";
public GetHello()
{
//
// TODO: Add constructor logic here
//
}
public string GetContent()
{
return aa;
}
}
Then I create a simple project and I want to use the GetContent to return
the string.
What I did was to add a reference to the dll created by the library class,
from the Projects tab.
then I create an object:
MyData_Object myObj = new MyData_Object();
trying to use myObj, it does not see the method I created earlier:
GetContent
Thank you