C#命名约定的缩写 [英] C# naming conventions for acronyms

查看:97
本文介绍了C#命名约定的缩写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于C#命名的首字母缩写词,如果我写的与Windows API的库有朝任WINDOWSAPI或WindowsAPI的任何坚固的习惯,或只是个人喜好?

Regarding C# naming for acronyms, if I was writing a library related to the Windows API is there any strong convention toward either WindowsApi or WindowsAPI or is it just personal preference?

推荐答案

有一个惯例,它指定首字母大写,其余小写,对于超过2个字符长的所有的缩写。因此,的HttpContext 客户端ID

There is a convention, and it specifies initial uppercase, the rest lowercase, for all acronyms that are more than 2 characters long. Hence HttpContext and ClientID.

这篇关于C#命名约定的缩写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆