2

Is it possible to link a comment/doc between the method signature and its implementation.

Example :

public interface IExample
{
     /// <summary>
     /// make ... 
     /// </summary>     
     void Something();
}

public class AClass : IExample
{
    void Something()
    {
    }
}

When I mouse Over the AClass Something method I want to have the summary of the interface method signature.

Christophe Debove
  • 6,088
  • 20
  • 73
  • 124
  • Um. What? I don't understand this question at all. Can you clarify? – Oded Dec 15 '11 at 11:02
  • Possible duplicate of [Ways to synchronize interface and implementation comments in C#](http://stackoverflow.com/questions/824007/ways-to-synchronize-interface-and-implementation-comments-in-c-sharp) – A-Sharabiani Oct 05 '15 at 18:18

1 Answers1

2

You can use see / seealso tags to reference declaration from the implementation part.

The tag lets you specify a link from within text. Use to indicate that text should be placed in a See Also section. Use the cref Attribute to create internal hyperlinks to documentation pages for code elements

interface ICommand
{
   void Execute();
}

/// <summary>
/// Represents a Concrete command, 
/// implements <see cref="ICommand" /> interface.
/// </summary>
public sealed class ConcreteCommand
{
   public void Execute()
   {
   }
}
sll
  • 61,540
  • 22
  • 104
  • 156