Q: can a NameSpace be passed as a variable?

S

Sky

Does anybody know of way to pass a namespace as an argument, other than by
string?

In other words, if I wrote a function to enumerate all classes in a
namespace, how can I pass it something like

typeof(NameSpace);

or something like that?
Thanks!
 
R

Richard A. Lowe

No, not really. Besides a string is the only form it's really meaningful to
use via Reflection anyway. What are you actually trying to accomplish here?
Maybe we can suggest a better way if you paint a broader picture of your
problem?

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top