2010-11-30 20 views
1

我用所有的希伯來字母命名了我的按鈕對象(WinForms),然後添加了單擊事件...並且它工作。c#中沒有拉丁變量的名字

這是我錯過的一些新的lang功能嗎?

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"; 
} 
+0

我相信是的。你的問題是什麼? – 2010-11-30 09:18:16

+0

沒什麼新意,但是,C#源代碼是unicode,所以幾乎所有東西都去... – 2010-11-30 09:19:26

回答

6

C#(也是其他流行語言,如Java)使用unicode字符集作爲其源代碼。這不是什麼新鮮事。

我建議你不僅堅持英文字母,還堅持標識符的英文名稱。它使程序命名與框架保持一致,源代碼可以由不懂你的語言的程序員維護。