find method in app

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

how can i check if a member/method or class is in the current Application
are there tools to do this like ismethod()
or isclass() etc.


or do i need to create a special class for a exception Handler
Mark
 
Hi,

If you are looking for a coding solution then check out reflection:

..NET Framework Developer's Guide
Reflection Overview
http://msdn2.microsoft.com/en-us/library/f7ykdhsy.aspx

To find a member you first need to know the type in which its defined, which
could be a class, but not necessarily. The Assembly class and Type class
has properties and methods that can help you. The GetType() method on the
Object class, from which all types derive, can be used to obtain a Type
object that you can use to reflect into the meta-data at runtime. You can
also use the typeof() statement in C#, which doesn't require an instance of
Object.

Otherwise, if you're just looking to browse the meta-data of an assembly,
check out the .NET Reflector program, which will probably be all you'll
need:

Lutz Roeder's PROGRAMMING.NET
§ Reflector for .NET
http://www.aisto.com/roeder/dotnet/
 

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

Back
Top