我正在初学者级别学习 C#。我不明白将整数添加到 Unicode 字符有什么作用。下面的示例中的添加有什么作用?
int amount = int.Parse(number.Text);
steps.Text = "";
string current = "";
do
{
int nextDigit = amount % 8;
amount /= 8;
int digitCode = '0' + nextDigit;
char digit = Convert.ToChar(digitCode);
current = digit + current;
steps.Text += current + "\n";
}
while (amount != 0);