foreach的本質(zhì)
提問(wèn)人:劉冬梅發(fā)布時(shí)間:2020-10-10
foreach(ElementType element in Collection)
{...}
IEnumerator enumerator = ((IEnumerable)(collection)).GetEnumerator();
try {
while(enumerator.MoveNext())
{
ElementType element = (ElementType)enumerator.Current;
{...}
}
}
繼續(xù)查找其他問(wèn)題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>