Это странный вопрос, но есть ли в C # или Visual Studio функция, позволяющая добавить комментарий по умолчанию к переопределенному абстрактному методу? Например.
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.
...
}
}
Тогда все наследующие классы также наследуют комментарий по умолчанию, который вы задали для абстрактного метода.
Я использую Microsoft Visual Studio Enterprise 2017 версии 15.8.2.