可以,但是这多个索引相当于函数重载,所以要求参数个数和类型是不能相同的。public empoylee this[int idx]
{
get
{
return null;
}
set
{
}
}
public functions this[int idx,int index]
{
get
{
return null;
}
set
{
}
}
{
get
{
return null;
}
set
{
}
}
public functions this[int idx,int index]
{
get
{
return null;
}
set
{
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货