下一个字母与char变量相对应

Ion*_*zău 3 c# wpf char

我的C#应用​​程序中有一个char变量c和一个TextBox textbox1.我想做这个:

textbox1.Text = (c + 2).ToString(); //this doesn't work, sure
Run Code Online (Sandbox Code Playgroud)

例如:

c = 'b';
textbox1.Text = "d";
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

Ami*_*ach 8

textbox1.Text = ((char)(((int)c) + 2)).ToString();
Run Code Online (Sandbox Code Playgroud)


NPS*_*000 8

不知道为什么每个人都投入到...

textbox1.Text = ((char)(c + 2)).ToString();
Run Code Online (Sandbox Code Playgroud)