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

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.

主站蜘蛛池模板: 罗江县| 乡城县| 泽州县| 上蔡县| 崇义县| 南平市| 恩平市| 黔东| 蒙阴县| 和硕县| 方山县| 延津县| 灵台县| 舒兰市| 宜宾县| 兴和县| 临泽县| 望都县| 商水县| 蒲江县| 宁南县| 崇左市| 蕉岭县| 浦北县| 淳化县| 女性| 棋牌| 仪陇县| 贵港市| 阳东县| 宣城市| 江北区| 射洪县| 清丰县| 曲阳县| 申扎县| 罗源县| 太保市| 沙坪坝区| 丹江口市| 家居|