What are the virtues of using XML comments in .NET?

前端 未结 6 1682
醉话见心
醉话见心 2021-01-04 23:56

I can\'t understand the virtues of using XML comments. I know they can be converted into nice documentation external to the code, but the same can be achieved with the much

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-05 00:14

    You don't have to use them in your projects.

    They are a standard that happens to be integrated into Visual Studio and if you use StyleCop they can be enforced. So this is the virtue here.

    However, if you decide you want to use DOxygen then there's nothing stopping you. Just make sure you are consistent.

提交回复
热议问题