Compiler Error CS0502
'member' cannot be both abstract and sealed
A class member cannot be both abstract and sealed.
The following sample generates CS0502:
// CS0502.cs
public class B
{
abstract public void F();
}
public class C : B
{
abstract sealed override public void F() // CS0502
{
}
}
public class CMain
{
public static void Main()
{ }
}