I am attempting to create a variable or string from "Convert.ToChar(b[i])" within the following context:
byte[] b = new byte[100];
int k = s.Receive(b);
Console.WriteLine("Recieved...");
for (int i = 0; i < k; i++)
Console.Write(Convert.ToChar(b[i]));
E.g.:
var str = Convert.ToChar(b[i]);
But the above does not work, as "i" is not defined within the current context