请教VB和C#语句之间的转换~~
请教VB和C#语句之间的转换~~
以下如何才可以转为C#的语句
Dim psw(2) As Byte '密码缓冲区
Dim Str_Renamed As String
Dim i As Short
Dim j As Short
Str_Renamed = Trim(Text1.Text)
If Len(Str_Renamed) < 6 Then
MsgBox("请输入6位密码!", MsgBoxStyle.Information, "提示")
Exit Sub
End If
j = 0
For i = 0 To 5
psw(j) = Val("&H" & Mid(Str_Renamed, i + 1, 2))
j = j + 1
i = i + 1
Next i