本文介绍了评论C#的继承(实际上是任何语言)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我有这个介面
public interface IFoo
{
///<summary>
/// Foo method
///</summary>
void Foo();
///<summary>
/// Bar method
///</summary>
void Bar();
///<summary>
/// Situation normal
///</summary>
void Snafu();
}
此类
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!
推荐答案
就是这样。
FlingThing()变成Flings the Thing
FlingThing() becomes "Flings the Thing"
这篇关于评论C#的继承(实际上是任何语言)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!