Groups | Blog | Home
all groups > c# > march 2004 >

c# : Q: can a NameSpace be passed as a variable?



Richard A. Lowe
3/21/2004 4:53:05 PM
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

--
C#, .NET and Complex Adaptive Systems:
http://blogs.geekdojo.net/Richard
[quoted text, click to view]

Sky
3/21/2004 11:48:20 PM
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!

AddThis Social Bookmark Button