foreach的本质
提问人:刘冬梅发布时间:2020-10-10
foreach(ElementType element in Collection)
{...}
IEnumerator enumerator = ((IEnumerable)(collection)).GetEnumerator();
try {
while(enumerator.MoveNext())
{
ElementType element = (ElementType)enumerator.Current;
{...}
}
}
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>