System.Reflection questions

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Hi,
I have two questions about Reflection. One I think I know the answer
to but will ask anyway.

1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?

2) This may be a dumb question but I'll ask. Is there anyway to use
Reflection with a VB6 dll or exe?
 
Hi Douig,
1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?
Nope.

2) This may be a dumb question but I'll ask. Is there anyway to use
Reflection with a VB6 dll or exe?

Nope.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
1) I can delve into a component or executable and get all the way to
the method within a class. But I can't see the code inside the method.
Is there a way to get access to that?

In v2.0 of the framework you can, using the new
MethodBase.GetMethodBody method.

2) This may be a dumb question but I'll ask. Is there anyway to use
Reflection with a VB6 dll or exe?

If you want to reflect on a VB6 binary, then no you can't do that.
Reflection requires metadata only available in managed executables.

If you want to use Reflection from VB6, I guess that would be possible
through COM interop.


Mattias
 
Back
Top