官术网_书友最值得收藏!

C# coding conventions

Using the guidelines in C# coding conventions facilitates the mastery of writing clean, readable, easy to modify, and maintainable code. Use variable names that are descriptive and represent what they are used for, as shown in the following code:

int accountNumber;

string firstName;

Also, having more than one statement or declaration on a line clogs readability. Comments should be on a new line and not at the end of the code. You can read more about C# coding conventions at: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions.

主站蜘蛛池模板: 习水县| 博野县| 永城市| 临江市| 鲜城| 普宁市| 怀远县| 开鲁县| 都江堰市| 三原县| 柘荣县| 垣曲县| 普安县| 新密市| 江城| 阳江市| 长宁区| 隆回县| 通辽市| 六枝特区| 灵宝市| 宾川县| 济宁市| 白水县| 静乐县| 深水埗区| 平遥县| 孟村| 海盐县| 长丰县| 衡东县| 贵州省| 景泰县| 内江市| 铜梁县| 扶绥县| 平度市| 绍兴县| 攀枝花市| 临沭县| 沅陵县|