This is a weird question but is there a feature on C# or in Visual Studio that allows one to add a default comment to an overridden abstract method? For example.
class A
{
// I am the default comment. Use this method to Initialize bla bla.
protected abstract void Method();
}
class B : A
{
protected override void Method()
{
// I am the default comment. Use this method to Initialize bla bla.
...
}
}
class C : A
{
protected override void Method()
{
// I am the default comment. Use this method to Initialize bla bla.
...
}
}
Then all the classes that inherit shall also inherit the default comment that you set for abstract method.
I'm using Microsoft Visual Studio Enterprise 2017 Version 15.8.2.