一个关于decorder的语句问题
大虾们,又打扰你们了,本菜鸟又有问题要请教了~~~~namespace __2
{
class Program
{
static void Main(string[] args)
{
byte[] bydata = new byte[1000];
char[] chardata = new char[1000];
FileStream File = new FileStream("../../1.txt", FileMode.Open);
File.Seek(0, SeekOrigin.Begin);
File.Read(bydata, 0, 1000);
Decoder d = Encoding.UTF8.GetDecoder();
d.GetChars(bydata, 0, bydata.Length, chardata, 0);
Console.WriteLine(chardata);
Console.ReadKey();
}
}
}
我想问一下这个语句“ d.GetChars(bydata, 0, bydata.Length, chardata, 0);”是什么意思~~~