📅  最后修改于: 2022-03-11 14:48:43.584000             🧑  作者: Mango
if (this.lista is List)
{
List list_B = this.lista as List;
foreach (B b in list_B)
b.Tarea();
}
else if (this.lista is List)
{
List list_S = this.lista as List;
foreach (string s in list_S)
Console.WriteLine(s);
}