So, I have a few extension methods, for commonly used stuff, and in documenting them, it's occurred to me that I have no idea how to consistently write the summary
tag in the XML comments. For example:
/// <summary>
/// Gets a subset of characters from the left-hand side of a string.
/// </summary>
public static string Left(this string value, int length)
vs.
/// <summary>
/// Gets the name of the month for this date.
/// </summary>
public static string MonthName(this DateTime value)
So, the problem seems to be that I don't know how to consistently refer to that pesky this
parameter. Further, I don't know how to clearly indicate that this is an extension method (since I'm not certain that Sandcastle and other tools have caught up to them yet and can automatically annotate the documentation to show it); I'd hate to have to rip all that manual documentation out later.
So the question is, what guidance is there for documenting extension methods? If there is no formal guidance, how do you all handle it? If we haven't, can we vote on something so I have something to go on? As an obsessive compulsive control freak, this inconsistency is driving me mad.