using System;
namespace Demo {
class MyApplication {
static void Main(string[] args) {
char[] ch = new char[5];
ch[0] = 'H';
ch[1] = 'e';
ch[2] = 'l';
ch[3] = 'l';
ch[4] = 'o';
string myChar = new string(ch);
Console.WriteLine("Converted to string = {0}", myChar);
}
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265909.html