BEST way of doing Reflection

N

.NET VB NewBEE

hi
after going thru some articles i'm confused with "How to implement
Reflection in my program"

my requirement is to dynamically load dll(whih got a specific Interface)
files from the same directory when the program comes there

i read the memory leakes can come
can u plz suggest the best way of implemening Reflection in this
senario.Some good tutorial links will be much helpful


Thanks
 
H

Herfried K. Wagner [MVP]

* ".NET VB NewBEE said:
after going thru some articles i'm confused with "How to implement
Reflection in my program"

my requirement is to dynamically load dll(whih got a specific Interface)
files from the same directory when the program comes there

i read the memory leakes can come
can u plz suggest the best way of implemening Reflection in this
senario.Some good tutorial links will be much helpful

Simple:

<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/downloads/PlugIns.zip>

Plug out functionality:

<http://www.codeproject.com/csharp/livecodedotnet.asp>
 
A

Abubakar

i read the memory leakes can come
I dont know about the memory leaks, but since it requires searching and
parsing of the meta data it can be very expensive operation. There was an
article in the msdn on "High-Performance Managed Applications" which said
that reflection API should be avoided in performance-sensitive code paths.
The most expensive of the reflection API are those that allow to dynamically
invoke class members, or dynamically emit, JIT and execute a method. I'v
that article in print with me but I dont have the link to it, but you can
search for it in msdn with the topic I mentioned above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top