国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 平阳县| 巴南区| 类乌齐县| 绥化市| 格尔木市| 阳高县| 平潭县| 洪湖市| 吴江市| 龙里县| 兴安盟| 开封市| 兰考县| 石阡县| 江门市| 来凤县| 思茅市| 鄂温| 余庆县| 内黄县| 大同市| 寻乌县| 清河县| 涡阳县| 衡水市| 宾川县| 金寨县| 磴口县| 林州市| 宁陵县| 双鸭山市| 烟台市| 讷河市| 元朗区| 库尔勒市| 威信县| 永清县| 襄垣县| 崇文区| 亳州市| 桦川县|