(Probably obvious) .NET question - creating objects dynamically
From: Jethro (Jethro_uk_at_hotmail.com)
Date: 06/14/04
- Next message: DraguVaso: "Format(Now, Milliseconds)?"
- Previous message: Josiph Root via .NET 247: "How to reset MDI cascade?"
- Next in thread: Herfried K. Wagner [MVP]: "Re: (Probably obvious) .NET question - creating objects dynamically"
- Reply: Herfried K. Wagner [MVP]: "Re: (Probably obvious) .NET question - creating objects dynamically"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: (Probably obvious) .NET question - creating objects dynamically"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Jun 2004 08:36:27 +0000 (UTC)
Hi all,
I have a solution, which contains several projects. Each project occupies
the same namespace, and compiles to s different .NET DLL
e.g.
MyNamespace.ThisClass is in one DLL
MyNamespace.ThatClass is in another DLL
I wish for a .NET EXE to be able to dynamically create an instance of either
on of the classes, given the classes name as a string.
I have tried using System.Reflection.Assembly calls, but watching in debug,
the Load call fails.
What would the mechanism be for doing this ?
thanks in advance.
- Next message: DraguVaso: "Format(Now, Milliseconds)?"
- Previous message: Josiph Root via .NET 247: "How to reset MDI cascade?"
- Next in thread: Herfried K. Wagner [MVP]: "Re: (Probably obvious) .NET question - creating objects dynamically"
- Reply: Herfried K. Wagner [MVP]: "Re: (Probably obvious) .NET question - creating objects dynamically"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: (Probably obvious) .NET question - creating objects dynamically"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|