Is there a way to tell the compiler to use a static type instead of a variable if your project does not use namespaces?
For example, I have a User class with various static and non-stationary methods. Let's say one of the static methods is called GetUser() .
I am trying to call this User.GetUser() method from a method that also has a variable in an area (inherited from the base class) called User. However, the compiler complains that it cannot find User.GetUser() because it believes that I mean a user variable that is in scope.
If this project used namespaces, I could just do ns1.User.GetUser() , but in this case this is not possible. Is there a way I can tell the compiler that I mean the type User instead of the variable User ?
source share