c#中没有变量的拉丁名称

Dav*_*vid 1 c#

我已经用所有希伯来字母命名了我的按钮对象(WinForms),然后添加了click事件......它有效.

这是我错过的一些新功能吗?

this.????? = new System.Windows.Forms.Button();
this.SuspendLayout();
// 
// ?????
// 
this.?????.Location = new System.Drawing.Point(58, 48);
this.?????.Name = "?????";
this.?????.Size = new System.Drawing.Size(75, 23);
this.?????.TabIndex = 0;
this.?????.Text = "button1";
this.?????.UseVisualStyleBackColor = true;
this.?????.Click += new System.EventHandler(this.button1_Click);

private void button1_Click(object sender, EventArgs e)
{
?????.Text = "BLAH BLAH";
}
Run Code Online (Sandbox Code Playgroud)

Sti*_*gar 6

C#(也是Java等其他流行语言)使用unicode字符集作为源代码.这不是什么新鲜事.

我建议你不要坚持使用英文字母,还要坚持使用英文名称作为标识符.它使程序命名与框架保持一致,源代码可以由不懂语言的程序员维护.