Get filename from assembly

S

Steven

Hi

I have an assembly for a project. within this assembly there is a file named
Form1.cs that has a class named frmLocalise.
I can load the application assembly "Assembly.LoadFrom(<filename>)".

What I need to do is get the name of the file that the frmLocalise class is
in.

Is this possible? If so how?

Thanks in advance.

Steven.
 
H

Herfried K. Wagner [MVP]

Steven said:
I have an assembly for a project. within this assembly there is a file
named
Form1.cs that has a class named frmLocalise.
I can load the application assembly "Assembly.LoadFrom(<filename>)".

What I need to do is get the name of the file that the frmLocalise class
is
in.

Is this possible? If so how?

This information is not available at runtime. I am wondering why you'd need
this information.
 

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