Reusable XML Documentation Comments
When working on C# projects, we often use XML documentation comments to describe types and members. Besides improving maintainability, these comments can also be turned into API documentation automatically by tooling.
But comments need maintaining too. Overloaded methods run into a recurring problem: a group of overloads usually share very similar comments, and editing them one by one makes it easy to end up with lots of subtle inconsistencies between overloads. It also makes maintaining the comments more tedious and fiddly.
The official XML documentation comments documentation is thorough, so this article won’t cover those details. Instead it focuses on ways to reuse comments.