foreach中所选的值是什么? [英] What is the selected value in foreach called as ?
本文介绍了foreach中所选的值是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道我们称之为foreach变量的选定值或当前值是什么?
例如
Hi,
I would like to know what we call the selected value or current value of foreach variable as ?
E.g.
foreach (string fileName in FilesArray)
{
Console.WriteLine(fileName);
}
现在每次循环执行时,我们都会在fileName中有一个值。
我们在给定的循环执行点调用fileName中的值是什么?
Now every time the loop executes, we'll have a value in fileName.
What do we call the value in fileName at a given point of loop execution?
推荐答案
它被称为 instance
我会称之为:foreach循环变量的当前值。
这篇关于foreach中所选的值是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文