Explicitly implementing an interface with an abstract method

Viewed 19938

Here is my interface:

public interface MyInterface {
    bool Foo();
}

Here is my abstract class:

public abstract class MyAbstractClass : MyInterface {
    abstract bool MyInterface.Foo();
}

This is the compiler error: "The modifier 'abstract' is not valid for this item.

How should I go on about explicitly implementing an abstract with an abstract method?

8 Answers
Related