国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 編程 > .NET > 正文

.NET Framework General Reference - Capitalization

2024-07-10 12:58:41
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
use the following three conventions for capitalizing identifiers.

pascal case

the first letter in the identifier and the first letter of each subsequent concatenated word are capitalized. you can use pascal case for identifiers of three or more characters. for example:

backcolor
camel case

the first letter of an identifier is lowercase and the first letter of each subsequent concatenated word is capitalized. for example:

backcolor
uppercase

all letters in the identifier are capitalized. use this convention only for identifiers that consist of two or fewer letters. for example:

system.io
system.web.ui
you might also have to capitalize identifiers to maintain compatibility with existing, unmanaged symbol schemes, where all uppercase characters are often used for enumerations and constant values. in general, these symbols should not be visible outside of the assembly that uses them.

the following table summarizes the capitalization rules and provides examples for the different types of identifiers.

identifier case example
class pascal appdomain
enum type pascal errorlevel
enum values pascal fatalerror
event pascal valuechange
exception class pascal webexception
note always ends with the suffix exception.
read-only static field pascal redvalue
interface pascal idisposable
note always begins with the prefix i.
method pascal tostring
namespace pascal system.drawing
parameter camel typename
property pascal backcolor
protected instance field camel redvalue
note rarely used. a property is preferable to using a protected instance field.
public instance field pascal redvalue
note rarely used. a property is preferable to using a public instance field.

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 桂阳县| 茶陵县| 当涂县| 张家口市| 遵化市| 贺州市| 合阳县| 大关县| 彩票| 隆回县| 左贡县| 松潘县| 富裕县| 油尖旺区| 微博| 泰宁县| 富蕴县| 洞头县| 逊克县| 图们市| 西华县| 石泉县| 盘山县| 子长县| 葵青区| 横山县| 邵阳市| 成安县| 晋宁县| 攀枝花市| 改则县| 太和县| 阳高县| 通山县| 莱西市| 石渠县| 安乡县| 桃园县| 大竹县| 宁国市| 虹口区|