且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将IList转换为整数

更新时间:2023-02-14 11:27:32

正如我们所讨论的那样,你应该写:

As we discussed, then you should write:
if (backplanes.Count <= 0) break;





To删除你可以使用的第一个元素(而不是backplanes = backplanes-1;)



To remove first element you can use (instead of "backplanes = backplanes-1;")

backplanes.RemoveAt(0);

//or use following code:
for(int i=0; i< backplanes.Count; i++ )
{
// your operations here....
}





更多信息: http://msdn.microsoft.com/en-us/library/5cw9x18z.aspx [ ^ ]