-
Namespaces
Hi,
I have a namespace containing many classes. I would like to access the classes dependent upon a user input variable. So for a namespace called foo, is there a way I can access it's classes with a variable? For example,
foo.(variable)?
I have tried having a variable string and trying foo.string but it doesn't work. Any suggestions?
Thanks.
-
I'm certain you can do this using reflection. I'm also certain that there is a better class design for what you've described.
-
Why would namespace access be based on user input?
-
Activator.CreateInstance Method (System)
I believe you can specify assemblies to look in.
-
Sorry...I was talking complete rubbish. I was referring to method access through classes. Have done what I needed to now.