Microsoft Coding Standard Document

后端 未结 6 1535
囚心锁ツ
囚心锁ツ 2021-02-04 11:35

Is there a Coding Standard document available for download from Microsoft ? I want to use their standards, mainly for C#.

6条回答
  •  天涯浪人
    2021-02-04 11:48

    If you wants guidelines published by Microsoft, google them or use links in other answers.

    But if you want "standards used in Microsoft's own code" - there isn't a single answer. Microsoft is a big company with many divisions and acquired code, so each project or product has it's own style.

    Even style of .NET Framework itself is slightly different from what StyleCop suggests.

    My point is, paying more attention to those guidelines and white papers than Microsoft itself does might be not be a good idea.

提交回复
热议问题