G
Guest
I have a solution in Visual Studio 2005 that looks something like this:
namespace-1.class-1
namespace-2.class-2
....
namespace-n.class-n
From class-n, I'd like to do the following:
string temp = "namespace-1.class1";
Assembly d = Assembly.GetAssembly(typeof(temp));
Console.WriteLine("Assembly: {0}", d.ToString());
Of course, if I use the actual namespace/class instead of temp for the
GetAssembly() parameter it work great. Any suggestions on how to pass in the
namespace/class that my program chooses into GetAssembly()?
Thanks,
Randy
namespace-1.class-1
namespace-2.class-2
....
namespace-n.class-n
From class-n, I'd like to do the following:
string temp = "namespace-1.class1";
Assembly d = Assembly.GetAssembly(typeof(temp));
Console.WriteLine("Assembly: {0}", d.ToString());
Of course, if I use the actual namespace/class instead of temp for the
GetAssembly() parameter it work great. Any suggestions on how to pass in the
namespace/class that my program chooses into GetAssembly()?
Thanks,
Randy