Why can't I inherit static classes?

Posted by User on Stack Overflow See other posts from Stack Overflow or by User
Published on 2009-04-21T19:23:37Z Indexed on 2010/05/10 3:48 UTC
Read the original article Hit count: 352

Filed under:
|
|

I have several classes that do not really need any state. From the organizational point of view, I would like to put them into hierarchy.

But it seems I can't declare inheritance for static classes.

Something like that:

public static class Base
{
}

public static class Inherited : Base
{
}

will not work.

Why have the designers of the language closed that possibility?

© Stack Overflow or respective owner

Related posts about c#

Related posts about static