一:foreach语句

foreach(Product p in result){

}
内部实际执行的代码为
IEnumerator itor=result.GetEnumerator()
while(itor.MoveNext())
{
...
}

相关文章: