Suppose I have this interface
public interface IFoo { ///<summary> /// Foo method ///</summary> void Foo(); ///<summary> /// Bar method ///</summary> void Bar(); ///<summary> /// Situation normal ///</summary> void Snafu(); }
And this class
public class Foo : IFoo { public void Foo() { ... } public void Bar() { ... } public void Snafu() { ... } }
Is there a way, or is there a tool that can let me automatically put in the comments of each member in a base class or interface?
Because I hate re-writing the same comments for each derived sub-class!
GhostDoc does exactly that. For methods which aren’t inherited, it tries to create a description out of the name.
FlingThing()becomes'Flings the Thing'