|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
reflection to get classes that implement interface in current assemblyI am already doing this inside the main assembly that is executing, but I
want to get a list of all the classes inside itself that implement a certain interface and make a list of them so I can instanciate them as an object. How would I go about doing this without reloading the assembly? thanks! >I am already doing this inside the main assembly that is executing, but I Assembly.GetExecutingAssembly will return a reference to the currently>want to get a list of all the classes inside itself that implement a certain >interface and make a list of them so I can instanciate them as an object. >How would I go about doing this without reloading the assembly? thanks! executing assembly. Mattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup. thanks just found that before i read ur message!
Show quoteHide quote "Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message news:eSsCzBd1GHA.1132@TK2MSFTNGP02.phx.gbl... > >>I am already doing this inside the main assembly that is executing, but I >>want to get a list of all the classes inside itself that implement a >>certain >>interface and make a list of them so I can instanciate them as an object. >>How would I go about doing this without reloading the assembly? thanks! > > Assembly.GetExecutingAssembly will return a reference to the currently > executing assembly. > > > Mattias > > -- > Mattias Sjögren [C# MVP] mattias @ mvps.org > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com > Please reply only to the newsgroup.
About IDisposable.Dispose()
Configuration in published program Inherited Forms in VB.NET class code does not show 'inherits from...' Determining if MS Word is running through VB code Mnemonics for Buttons with symbols on java developer wants to learn VB.NET Mail merge from word using sql server express and vb.net 2005 Referencing an Enum with Embedded Spaces Treeview (Eric Moreau) Licensing with Plimus |
|||||||||||||||||||||||