In C#, this :
static class foo
{
protected void doThing(); // CS1057
{
}
}
Generates the CS1057 compiler error, as static classes don't support inheritance.
So why is this allowed? What is the meaning of the protected keyword in this context?
static class foo
{
protected struct bar
{
}
}