110,537
社区成员
发帖
与我相关
我的任务
分享
foreach (object i in l)
{
switch (i.GetType().FullName)
{
case "System.Int32":
Func((int)i);
break;
case "System.String":
Func((string)i);
break;
default:
break;
}
}