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

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.

主站蜘蛛池模板: 巍山| 新闻| 兴文县| 新晃| 长泰县| 铜山县| 阳江市| 米易县| 江永县| 武义县| 兴安盟| 靖远县| 博爱县| 福海县| 平南县| 万荣县| 小金县| 崇明县| 绵竹市| 彩票| 东兴市| 乌鲁木齐市| 凤翔县| 彰化县| 肇东市| 临夏县| 焉耆| 镶黄旗| 体育| 张掖市| 西乡县| 亚东县| 吉木乃县| 营口市| 南康市| 通化县| 白城市| 台中市| 林芝县| 建水县| 仙桃市|