是否需要重新声明派生接口中的继承接口中声明的所有方法?声明接口中的所有继承接口的方法?
例子:
public interface IBoo
{
void DoSomething();
}
public interface IFoo : IBoo
{
string SayHello();
}
或将我必须这样做: -
public interface IFoo : IBoo
{
void DoSomething();
string SayHello();
}
不需要界面和大括号中的修饰符... – puko 2015-03-25 10:38:17
@puko感谢您的提示! – 2015-03-25 10:40:41