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,
I have tried having a variable string and trying foo.string but it doesn't work. Any suggestions?