I imagine that we all (when we can be bothered!) comment our interfaces. e.g.
///
/// Foo Interface
///
public interface Fo
I created a tool that post-processes the XML documentation files to add support for the <inheritdoc/> tag.
While it doesn't help with Intellisense in source code, it does allow the modified XML documentation files to be included in a NuGet package and therefore works with Intellisense in referenced NuGet packages.
It's at www.inheritdoc.io (free version available).
If you use the GhostDoc addin, it updates the implementation with the comment from the interface when you right click and select "Document This" on the method.
C# usage:
Interface can look like this:
/// <summary>
/// Helper class to access various properties for the current site.
/// </summary>
public interface ISiteHelper
{
/// <summary>
/// Gets the site id of the current site
/// </summary>
/// <returns>The site id.</returns>
int GetSiteID();
}
}
Implementation can look like this:
/// <inheritdoc />
public class SiteHelper: ISiteHelper
{
/// <inheritdoc />
public int GetSiteID()
{
return CommonRepository.GetSiteID();
}
}