posted 20 years ago
The rule is that you can not access a non-static member from a static context without an instance for that member. This is done because an instance member requires an instance in order to exist or to be invoked.
However, there is no problem accessing a non-static class. A class is always "available" as it needs no enclosing instance in which it must exist, unless you're talking about inner classes - which you happen to be using here. With such a case, you must have an enclosing class, which you do, but that's a different matter, entirely.
I'm not sure if I've answered your question or not, but let me know if you're still confused.