阅读背景:

在foreach循环内手动增加枚举数

来源:互联网 

I have a nested while loop inside a foreach loop where I would like to advance the enumerator indefinitately while a certain condition is met. To do this I try casting the enumerator to IEnumerator< T > (which it must be if it is in a foreach loop) then calling MoveNext() on the casted object but it gives me an error saying I cannot convert it.I have a nested while loop inside a foreach loo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: