Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Also, if someone wants to not use namespaces, even using classes the can: using Item1 = CategoryA.Item1 (i think that works for nested classes as it does for namespaces) Commented Jan 16, 2012 at 12:44
  • 1
    In C++, ADL does not work with class scope; it works with namespace scope. So in C++, the namespace isn't only natural choice, but correct and idiomatic choice also. Commented Mar 8, 2013 at 11:06
  • I think it's OP's intention to avoid hiding namespace by the using keyword. He wants to force users to writie it every time. Maybe his namespace is like var s = new HideMe.MyPhoneNumberIs12345678.TheRealUsefulClass() Commented Mar 15, 2017 at 1:20