why static class can't have protected?

I was wandering why not?

what’s the difference?

if I use class like this:

public class A{
    // and in here it needs to read int but it must not go out of the class, ... because it should be private to this scope, ...
    public static class B{
        protected static int a = 0;
    }
}

http://stackoverflow.com/questions/6558339/c-sharp-language-question-static-class-protected-member

well that didn’t really answer my Q

the second answer seems most usable, … but still

i’m not deriving from a class.

I’m actually accessing my own class inside class.

and I’m not trying to access parent but static child class members, witch must be private for the rest of the “world”

B is not a child class, it is a nested class:

No matter how you declare B, it will only be visible from A.