Skip to content

Having multiple Program classes in the global namespace. #7079

Closed Answered by HaloFour
DavidVollmers asked this question in Q&A
Discussion options

You must be logged in to vote

You can alias each of the references so that instead of appearing in the global namespace that they appear in separate namespaces. This is how you can disambiguate classes that have the same fully qualified name in separate assemblies in general:

using CliProgram = cli::Program;
using AppProgram = app::Program;

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
6 replies
@DavidVollmers
Comment options

@333fred
Comment options

@bernd5
Comment options

@DavidVollmers
Comment options

@333fred
Comment options

Answer selected by DavidVollmers
Comment options

You must be logged in to vote
6 replies
@DavidArno
Comment options

@bernd5
Comment options

@DavidVollmers
Comment options

@DavidArno
Comment options

@DavidVollmers
Comment options

Comment options

You must be logged in to vote
2 replies
@DavidVollmers
Comment options

@ehonda
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants