当前位置:网站首页>最基础的命名规范,也是最能体现一个程序员是否为良好程序员的基本素养
最基础的命名规范,也是最能体现一个程序员是否为良好程序员的基本素养
2022-07-18 23:36:00 【济南医疗小程序状元】
命名规范
最基础的也是最重要的,最能体现一个程序素养的地方了吧。就是命名规范的使用,because开发不是一个Person的事情啊。
#region 管理命名空间
namespace Manager
{
class DemoLH
{
// 下面的是成员变量,也叫做字段, 变量前加入前缀 _
public int _ID;
public string _Name;
//方法的命名规范
public void ShowInfo()
{
// // 使用某个控件的值时, 尽量使用局部变量。比如如下例子。
//string strTitle = TextBox.text;
string strSex;
string strAdd;
string strUserName; // 这是一个局部变量。
//Console.WriteLine(strUserName);
}
}
// 接口的命名规范 1
interface IStudentInfo
{
}
}
#endregion
边栏推荐
- 毕业季&收获季,留下你的美好时刻
- Online XML to JSON tool
- 「接口測試入門課」打卡學習 day03:理解接口測試的關鍵邏輯
- WSL2 通过 USBIP 连接USB串口设备 JetsonUSB备份刷机
- day03_ 3_ Process control exercises
- js数据类型获取
- Is it safe to open an account online in flush
- 字节跳动(抖音)软件测试月薪23K岗、技术二面面试题最新出炉
- Usage and meaning of [optional chain], [null value merging operator] and [null value assignment operator] of JS
- LeetCode刷题回顾(题目编号:94、17、面试题17、102、215、1、21)
猜你喜欢
随机推荐
Microservice architecture | message bus and driver - [bus & stream]
「小邓观点」SIEM为企业带来的价值(Ⅱ)
day03_2_流程控制
互联网大厂智能座舱斗法
一切皆可元宇宙,俨然成为了较为时兴的话题
「接口测试入门课」打卡学习 day03:理解接口测试的关键逻辑
9-20V输入 峰值充电电流 3A 双节锂电开关型充电芯片SC7102
The line chart can show the data trend and filter the data at the same time
Note - "sum of Euler functions of factors"
互联网大厂智能座舱斗法
B树-删除
自动化测试:Robot FrameWork框架99%的人都想知道的实用干货技巧!
小白新手再启牛开通银河证券靠谱安全吗?
Intelligent cockpit fighting method of Internet manufacturers
Share | 2022 big data white paper of digital security industry (PDF attached)
js的【可选链】,【空值合并运算符】,【空值赋值运算符】用法和含义
小白新手再启牛开通华泰账户安全吗?
An improved one millisecond mobile backbone paper notes
【obs-studio开源项目从入门到放弃】obs高级输出内存泄露
互联网大厂智能座舱斗法