От: | _NN_ | www.nemerleweb.com | |
Дата: | 22.05.13 07:02 | ||
Оценка: |
interface Q
{
void F();
}
interface W : Q
{
void F();
}
interface Q
{
F() : void;
}
interface W : Q
{
F() : void;
}
warning : N114: method W.F() : void hides method Q.F() : void inherited from base class. To make the current member override that implementation, add the `override' keyword. Otherwise add the `new' keyword.
interface Q
{
new F() : void;
}
interface W : Q
{
new F() : void;
}
interface Q
{
new void F();
}
interface W : Q
{
new void F();
}
warning CS0109: The member 'Q.F()' does not hide an inherited member. The new keyword is not required.