如何将foreach输出为字符串c#// g打印为数组而不是字符串

byte[] array = Encoding.ASCII.GetBytes(text);

foreach (byte e in array)
{
    int v = e + 1;
    char g = (char)v;
    g.ToString();
    Console.WriteLine(g);
}
评论