日期:2014-05-17 浏览次数:20866 次
class Class1<T>
{
private string name;
private int age;
public string Name
{
get { return name; }
set { name = value; }
}
public int Age
{
get { return age; }
set { age = value; }
}
}
namespace ConsoleApplication13
{
class Program
{
static void Main(string[] args)
{
new System.Threading.Thread(new System.Threading.ThreadStart(
() =>
{
}
)).Start();
C c = new C();
Console.Write(c["test2"].Name);
}
}
class A
{
private string name;
&n