求高手将以下几句C#代码改为VB.NET语法,谢谢。急
Byte[] hexstr2array(string HexStr)
{
string HEX = "0123456789ABCDEF ";
string str = HexStr.ToUpper();
int len = str.Length;
byte[] RetByte = new byte[len/2];
for(int i=0; i <len/2; i++)
{
int NumHigh = HEX.IndexOf(str[i*2]);
int NumLow = HEX.IndexOf(str[i*2+1]);
RetByte[i] = Convert.ToByte(NumHigh*16+NumLow);
}
return RetByte;
}
------解决方案--------------------转换工具
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx