日期:2014-05-17 浏览次数:20844 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
using namespace2;
class Class1
{
public void foo() { Console.WriteLine("ConsoleApplication1.class1.foo()"); }
}
class Program
{
static void Main(string[] args)
{
Class1 c = new Class1();
c.foo();
namespace2.Class1 c1 = new namespace2.Class1();
c1.foo();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace namespace2
{
class Class1
{
public void foo() { Console.WriteLine("namespace2.class1.foo()"); }
}
}