namespace ConsoleApplication1
{
class Class1
{
public void showA()
{
Console.WriteLine("A");
}
public class Class2
{
public void showB()
{
Console.WriteLine("B");
}
}
}
}
------解决方案--------------------
Class1.Class2 cl = new Class1.Class2(); c1.showB();