Troubles with inheritdoc tag

So, with this code...

public interface IInheritTest {
/// <summary>
/// Important comments
/// </summary>
void Test();

/// <inheritdoc/>
public class InheritTest : IInheritTest {
public void Test() {
throw new NotImplementedException();

I'm getting this XML documentation...

<?xml version="1.0"?>
<member name="M:Butterfly.Examples.IInheritTest.Test">
Important comments
<member name="T:Butterfly.Examples.InheritTest">

Shouldn't "Important comments" be copied to the InheritTest class as well?  I've also tried adding an <inheritdoc/> tag within a <summary> tag of the XML comment on InheritTest.Test() and the XML comment is still not copied.  I'm using Visual Studio 2017 Community Edition and just downloaded Resharper so presumably have the latest version.

1 comment

You have to apply the <inheritdoc /> tag on each method declaration. If you use Alt-Enter to generate the interface members there is an option to do this automatically (see below)


Best Regards





Please sign in to leave a comment.