Though this is soooo simple I m not finding a solution for this.
I created a Class Library GoodBye
namespace
Greet
{
public class GoodBye
{
public void sayHello()
{
Console.WriteLine("GoodBye");
}
}
}
Then another ClassLibrary Hello as:
amespace
Greet
{
public class Hello
{
public void sayHello()
{
Console.WriteLine("Hello");
}
}
}
Then another assembly GreetAssembly
with reference to the both Hello and Goodbye dlls as:
using
System;
using
System.Collections.Generic;
using
System.Text;
using
Greet;
namespace
GreetAssembly
{
public class GreetAssembly
{
}
}
then I created a Console appln with a reference to GreetAssembly as:
using
System;
using
System.Collections.Generic;
using
System.Text;
using
GreetAssembly;
namespace
Calling_Program
{
class Program
{
static void Main(string[] args)
{
// Code to be written to access Hello and GoodBye class methods with the GreetAssembly
// namespace
}
}
}
I want to access the Hello and GoodBye and their methods from the Main of Program class.But I am not able to do it?!?!?!!?I have reference to GreetAssembly which has those dlls!!!! But I am not able to.
Can anyone help me clear this basic doubt?!?!?!