473,491 Members | 2,221 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessing IL code using System.Reflection

Hello,

Is there away in .Net to view an assemblies IL code after
I get the Assembly object via call to Assembly.LoadFrom
(assemblyName). I don't want to use utilities like
Reflector for this type of development. I am using
Framework 1.1.

Please help.
Nov 16 '05 #1
2 1430
Lutz Roeder has an ILReader class that is capable of something like this.

Otherwise wait until Whidbey. You can get the IL for any method body,
and you can optionally load Assemblies in a reflection only mode so that
the assembly is guaranteed not to run any code, before you've gotten a
chance to fully inspect it's IL. This is a great feature for plug-in hosters.
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"Testing1000" <an*******@discussions.microsoft.com> wrote in message
news:46****************************@phx.gbl...
Hello,

Is there away in .Net to view an assemblies IL code after
I get the Assembly object via call to Assembly.LoadFrom
(assemblyName). I don't want to use utilities like
Reflector for this type of development. I am using
Framework 1.1.

Please help.

Nov 16 '05 #2
Hello,

Where do I download the ILReader, I tried his site and
could not find the file. Here is the link I tried.
http://www.aisto.com/roeder/dotnet/Download.aspx?
File=IlReader

Please help.
-----Original Message-----
Lutz Roeder has an ILReader class that is capable of something like this.
Otherwise wait until Whidbey. You can get the IL for any method body,and you can optionally load Assemblies in a reflection only mode so thatthe assembly is guaranteed not to run any code, before you've gotten achance to fully inspect it's IL. This is a great feature for plug-in hosters.

--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"Testing1000" <an*******@discussions.microsoft.com> wrote in messagenews:46****************************@phx.gbl...
Hello,

Is there away in .Net to view an assemblies IL code after I get the Assembly object via call to Assembly.LoadFrom
(assemblyName). I don't want to use utilities like
Reflector for this type of development. I am using
Framework 1.1.

Please help.

.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10906
by: Ken Durden | last post by:
Hey, I posted this a few months ago and got completely off-the-chart responses. At the time I wasn't using reflection very much, but more and more I find myself wanting to use it to write...
0
1382
by: Jason Coyne Gaijin42 | last post by:
I have seen several people looking for a way to access the Columns collection when using the AutoGenerateColumns = true option. Some people have gotten so far as to find the private...
0
1664
by: Jason Coyne Gaijin42 | last post by:
I have seen several people looking for a way to access the Columns collection when using the AutoGenerate = true option. Some people have gotten so far as to find the private autoGenColumnsArray...
2
30549
by: Kumar | last post by:
Hi Folks, I have a question regarding my windows c# application. This application just reads MS Excel file and puts the data in to sql server database. In that excel file ,it has one named cell...
6
2537
by: Earl Teigrob | last post by:
I am writing an application that dynamically loads user controls at run time based on user options. I would like to give my users the ability to build their own user controls and add them to my...
4
6332
by: First Tiger | last post by:
Is there a default function or global variable that will allow me to derive the location of my install? I'm trying to store my system settings file from a persistent location. I know that I can set...
5
2717
by: Peter Proost | last post by:
Hi I got this piece of c# code which runs ok but now I translated it to vb.net (see bottom of post for both pieces) and it keeps erroring out at pi.SetValue(testForm, newValue, x) with this error:...
3
4961
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
9539
by: Jay | last post by:
Is there a way to access the actual datatype of a property when looking at the PropertyInfo? For example: Property defined: public Nullable<DateTimeEndDate { get { return endDate; }
2
3079
by: Smithers | last post by:
Using 3.5, I am stuck in attempting to: 1. Dynamically load an assembly 2. Instantiate a class from that assembly (the client code is in a different namespace than the namespace of the...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.