Is there any way to tell the compiler to use a static type instead of a variable when your project doesn't use namespaces?
For instance, I have a class called User with various static and non-static methods. Let's say one of the static methods is called GetUser().
I'm trying to call that User.GetUser() method from a method that also has a variable in scope (inherited from base class) called User. However, the compiler complains saying that it can't find User.GetUser() because it thinks I'm referring to the User variable that's in scope.
If this project used namespaces, I could just do ns1.User.GetUser(), but that's not feasible in this case. Is there a way that I can tell the compiler that I'm referring to the User type instead of the User variable?