将Visual Basic循环转换为C#循环

时间:2012-07-30 18:08:34

标签: c# .net

如何将其转换为C#?

For i = IBase36.Length - 1 To 0 Step i - 1

Next

谢谢!

2 个答案:

答案 0 :(得分:5)

for (int i = IBase36.Length -1; i >=0; i--)
{
    //Your Treatment
}

答案 1 :(得分:3)

试试这个:

for (int i = IBase36.Length -1; i >=0; i--)
{
    //Do stuff
}