c# 无法将类型“byte”隐式转换为“byte[]”
c# 部分代码
string[] str = content.Split('|');
byte[] btyes = new byte[str.Length];
for (int i = 0; i < str.Length; i++)
{
if (str != null)
{
if (str.Length > 0)
{
btyes = Convert.ToByte(str) ;
}
}
}
这里提示 btyes = Convert.ToByte(str) 无法将类型“byte”隐式转换为“byte[]”
应该怎么转换呢?高手求解