0
我在一些C#代碼轉換到VB.NET的過程......我遇到的錯誤在以下比較出錯轉換C#到VB.NET
C#
if (bytes[i - 1] == ' ')
{
returnValue.Append("=20");
}
else if (bytes[i - 1] == '\t')
{
returnValue.Append("=09");
}
VB.NET
If bytes(i - 1) = " "C Then <==error Operator "=" is not defined for types 'Byte' and 'Char'
returnValue.Append("=20")
ElseIf bytes(i - 1) = ControlChars.Tab Then <==error Operator "=" is not defined for types 'Byte' and 'Char'
returnValue.Append("=09")
End If
是什麼類型的字節? – 2011-01-21 19:32:14