Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overriding a virtual method from within an inherited class but keep the comments of the base class [duplicate]

Tags:

comments

c#

Possible Duplicate:
Comment Inheritance for C# (actually any language)

In my application, my base class clearly defines the purpose of each virtual method.

When I inherit my base class and override the virtual methods, I'm having to re-type the comments.

Now, I know why it doesn't copy the comments by default and it makes sense but as I have many classes inheriting from my base class it's getting tiresome to copy the entire XML comments to add an additional <para> to the bottom of the comments.

Is this just the way it is?

like image 557
Dave Avatar asked Dec 07 '12 15:12

Dave


1 Answers

You could use ReSharper. Whenever you implement any interface it will bring over the XML comments as well (if you so choose).

like image 172
Corey Adler Avatar answered Oct 13 '22 05:10

Corey Adler