且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

c#中的“#"是什么意思?

更新时间:2023-01-24 12:54:05

找到它 ^ ]

名称"C锋利" 受音乐符号启发的地方,其中的尖声表示应将音符调高半音. br/>
这类似于C ++的语言名称,其中"++"表示变量应加1.

由于显示器的技术局限性(标准字体,浏览器等),并且标准键盘上没有清晰的符号(U+266F ♯ music sharp sign (HTML: ♯)),因此出现了数字符号(U+0023 # number sign (HTML: #)) 选择以编程语言的书面名称表示尖锐的符号.

此约定反映在ECMA-334 C# Language规范中.

但是,在实际可行的情况下(例如,在广告或美术中),Microsoft使用预期的音乐符号.
Found it on Wiki[^]

The name "C sharp" was inspired by musical notation where a sharp indicates that the written note should be made a semitone higher in pitch.

This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1.

Due to technical limitations of display (standard fonts, browsers, etc.) and the fact that the sharp symbol (U+266F ♯ music sharp sign (HTML: ♯)) is not present on the standard keyboard, the number sign (U+0023 # number sign (HTML: #)) was chosen to represent the sharp symbol in the written name of the programming language.

This convention is reflected in the ECMA-334 C# Language Specification.

However, when it is practical to do so (for example, in advertising or in box art), Microsoft uses the intended musical symbol.


名称"C sharp"是受音乐符号启发的其中尖锐的文字表示应将音符制成音调较高的半音.这类似于C ++的语言名称,其中"++"表示变量应加1 .
The name "C sharp" was inspired by musical notation where a sharp indicates that the written note should be made a semitone higher in pitch. This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1.


亲爱的,


C#在这里被称为"C Sharp".#"表示"Sharp",表示该语言工作迅速,易于学习且易于理解的代码....
Hi Dear,


C# is called "C sharp" here ''#'' means ''Sharp'' that denote this language working fast, learning easily and easy understandable code....