Why don't you just hold onto the Assembly object that comes back from the codedom?  I 
mean, why discard it, just to go searching for it again, moments later?

-S


On Thu, 23 Jan 2003 17:41:03 -0500, Abdulla, Jehangir <[EMAIL PROTECTED]> wrote:

>I'm using CodeDom to generate an Assembly. I now need to call methods in classes in 
>that Assembly.
>Whats the best way of doing it, I can do a AppDomain.CurrentDomain.GetAssemblies and 
>loop thru the Assemblies returned until I find my assembly and then use Reflection to 
>call methods on it, but I'm thinking there has to be a better way of doing it.
>TIA,
>John
>
>You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
>DOTNET, or
>subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to