Q: can a NameSpace be passed as a variable?

  • Thread starter Thread starter Sky
  • Start date Start date
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!
 
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
 
Back
Top