2025.01.20 文字と文字コードを相互変換する
private void button1_Click(object sender, EventArgs e) { int v1 = 0x41; listBox1.Items.Add(v1); char c1 = (char)v1; listBox1.Items.Add(c1); int v2 = (int)c1; listBox1.Items.Add(v2); }
C# プログラマーのフリーランスでの活動を書いています。
private void button1_Click(object sender, EventArgs e) { int v1 = 0x41; listBox1.Items.Add(v1); char c1 = (char)v1; listBox1.Items.Add(c1); int v2 = (int)c1; listBox1.Items.Add(v2); }