110,532
社区成员
发帖
与我相关
我的任务
分享
protected static T CreateNewInstance<T>() where T : new()
{
return new T();
}
protected static object CreateNewInstance<T>(string s)
{
return Activator.CreateInstance(typeof(T), new object[] { s });
}
protected static Person CreateInstrance<T>(string a) where T : new()
{
return new Person(a);
}
protected static T CreateNewInstance<T>(string s) where T : new()
{
return new T(s);
}