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

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.

主站蜘蛛池模板: 宽城| 金湖县| 民乐县| 苍溪县| 星子县| 辽宁省| 宿迁市| 夏河县| 华蓥市| 隆回县| 松江区| 江陵县| 阳曲县| 滁州市| 拜城县| 固始县| 云林县| 五常市| 台北市| 东海县| 叙永县| 鲜城| 聊城市| 新竹市| 巨鹿县| 花垣县| 河源市| 望谟县| 阜平县| 财经| 黑龙江省| 泰安市| 恩施市| 大邑县| 永寿县| 大化| 宜君县| 罗甸县| 武安市| 小金县| 濮阳市|