Namespace and class conflict(?)
Posted
by dan gibson
on Stack Overflow
See other posts from Stack Overflow
or by dan gibson
Published on 2010-05-07T08:58:52Z
Indexed on
2010/05/07
9:08 UTC
Read the original article
Hit count: 104
c#
This is a bad title for the question, but I'm not quite sure of a better one.
I have a namespace called Globals with a class X in it. I also have a class called Globals. When I try to access Globals.X.StaticMember it tries to access the class Globals.X and complains that X doesn't exist. How do I reference the namespace Globals - ie ::Globals.X.StaticMember (:: doesn't compile).
© Stack Overflow or respective owner