No increment operator in VB.net

后端 未结 5 1847
春和景丽
春和景丽 2020-12-15 03:41

I am fairly new to vb.net and came across this issue while converting a for loop in C# to VB.net I realized that the increment operators are not available in vb.net (++ and

5条回答
  •  不知归路
    2020-12-15 04:14

    Simply because the designers thought that i++ is unnecessary when you have i += 1.

    For loops don't need either one, so you don't lose anything.

    It's Visual Basic after all... why make it complicated?

提交回复
热议问题