作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
<分区>
Possible Duplicate:
How does foreach work when looping through function results?
如果我有如下功能 - ReturnParts() 会在 foreach 循环中的每次迭代中被调用,还是只会被调用一次?
private void PrintParts()
{
foreach(string part in ReturnParts())
{
// Do Something or other.
}
}
private string[] ReturnParts()
{
// Build up and return an array.
}
我是一名优秀的程序员,十分优秀!