string strSource = "changed";
strSource=strSource.PadLeft(16);
Console.WriteLine(strSource+strSource.Length);
char[] temp1=new char[16];
strSource.CopyTo(0, temp1, 0, strSource.Length);
Console.WriteLine(temp1);
Console.WriteLine(temp1.Length);
char[] temp2 = new char[16];
temp2=strSource.ToCharArray(0,16);
Console.WriteLine(temp2);
使用 tochararray也可以.