string s = "asdf"; //字符转char char[] c = s.ToCharArray(); Console.WriteLine(s[0]); //char转string string s1 = c.ToString(); Console.WriteLine(s); Console.ReadKey();
string s = "asdf"; //字符转char char[] c = s.ToCharArray(); Console.WriteLine(s[0]); //char转string string s1 = c.ToString(); Console.WriteLine(s); Console.ReadKey();