110,533
社区成员
发帖
与我相关
我的任务
分享
class Player<TSRC>
where TSRC : int, float
{
public static TSRC src
{ get; set; }
}
class myC
{
public myC(TSRC _src)//编译错误
{
}
}
class myC<T> where T:int,float
{}
myC<T> myc where T:int,float;
myc = new myC<int>( src);//编译错误