110,535
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
List<Base> list = new List<Base>();
list.Add(new A<int>());
}
}
class Base { };
class A<T> : Base
{
public override string ToString()
{
return this.GetType().ToString();
}
}
}