Click here to Skip to main content
15,892,643 members
Everything / Programming Languages / MSIL

MSIL

MSIL

Great Reads

by Steve Marsh
The classes in this project allow you to parse text expressions entered by a user and compile them to a .NET assembly. This assembly can be executed on the fly, or saved to a DLL.
by Jason R. Fruit
Implement a compiling calculator to learn about .NET CIL compilation
by Jonathan de Halleux, Nikolai Tillmann
Pex is a new tool that helps in understanding the behavior of .NET code, debugging issues, and in creating a test suite that covers all corner cases -- fully automatically.
by jconwell
Part 2 of an introduction to creating dynamic types. This article shows how to actually generate the methods in a dynamic type and how to call them.

Latest Articles

by Mark Pelf
Overview of 5 free .NET Decompilers
by Higty
Design mapping rule by test case and write IL code for good performance
by Alexandre Bencz
DotNetPELib is a library which abstracts managed information such as namespaces, classes, fields, methods, and instructions. The information can then be used to generate assembly language source files, or PE executables or DLLs.
by Alexandre Bencz
With this new OrangeC/C++ compiler back-end, you can compile your C code to .NET

All Articles

Sort by Title

MSIL 

7 Aug 2014 by Jerry.Wang
Modify methods' IL codes on runtime even if they have been JIT-compiled, supports release mode / x64 & x86, and variants of .NET versions, from 2.0 to 4.5.
30 Sep 2013 by Florian Rosmann
COM Interop using a little post compiler. As a result, it is possible to use multithreading in combination with COM interfaces.
14 May 2008 by Daniel Pistelli
An article about .NET internals and code injection
30 May 2008 by Daniel Pistelli
An article about .NET internals and native compiling.
2 Mar 2023 by Mark Pelf
Overview of 5 free .NET Decompilers
28 Jul 2017 by The_Unknown_Member
Im wondering how the MSIL is running without being compiled firstly ? As I know .NET uses a JIT compiler and the JIT compiler is both interpreter and compiler which runs after the program start (in run-time). So how the MSIL is getting executed ? What I have tried: Asking a question here in...
28 Jul 2017 by OriginalGriff
Quote: So how the MSIL is getting executed ? There is a wealth of resources on t'internet which explain this: Code Execution Process[^] provides a nice overview, but Google can find you more details. Quote: Can you also explain me how the Assembly code executes ? For example lets assume we have...
10 Feb 2006 by Chris Stefano
Generate loader classes for faster operation using Reflection.Emit
1 Feb 2011 by asheesh goja
A high performance binary serializer using Microsoft Common Intermediate Language
11 Feb 2013 by Sander Rossel
Journey to the center of the .NET Framework with a chance of IL along the way!
24 Oct 2002 by Valer BOCAN
Microsoft Intermediate Language (MSIL) may be improved by adding a few new instructions
16 Aug 2011 by Reto Ravasio
A WPF app that uses dynamic types and databinding for displaying MSI files.
23 Jun 2013 by jagdish123061
Hello guys I had uploaded my asp.net website and database to server using core ftp.I had modified my database and trying to upload it to the server using core ftp but it is displaying error like 'Could not access file because it is used by another process'.because when some one opens...
31 Jul 2008 by Anton Ponomarev
By following steps outlined in this article, you will be able to get Report Viewer to generate reports in Microsoft Word formats (DOC, RTF, WordprocessingML, and OOXML) when working in the local mode.
2 Nov 2011 by Rene Pally
Advanced .NET Debugging Extracting Information from Memory
13 Nov 2008 by Buu Nguyen
Discusses the new features of C# 4.0 including dynamic lookup, covariance/contravariance generics, named and optional paramters
30 Mar 2007 by GaryWoodfine
Analysis of the CIL generated by the .net compiler for 4 Languages in VS 2005
3 Sep 2004 by Hugo Pais Batista
Avoid unnecessary variable declaration and redundant instructions. Analyzing and understanding the compiler and generated IL instructions in a simple example, saving your performance.
26 Apr 2013 by Sebastien Lebreton
Reflexil is an assembly editor and runs as a plug-in for Reflector or JustDecompile. Reflexil is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports "on-the-fly" C#/VB.NET code injection.
30 Sep 2013 by Imre S Lengyel
Use ILSpy to perform a more comprehensive check on Emitted assembiles
3 Mar 2006 by Peter Rilling
Implement support for broadcasting events to all ancestors in a control hierarchy for Win Forms applications.
26 Jan 2018 by Jason R. Fruit
Implement a compiling calculator to learn about .NET CIL compilation
31 Oct 2004 by Chua Wen Ching
Building Security Awareness in .NET Assemblies : Part 3 of 3
4 Jul 2011 by Chad Z. Hower aka Kudzu
Introduction to writing plugs in Cosmos in C#, Assembly, or X#
26 Jun 2007 by venom00
In this article, we'll talk about VB6-.NET interoperation without involving COM. How? Making C-like exports of some functions from a VB.NET DLL. First, I'll introduce the technique used with a very simple sample and then it will be explained how to set a global hook just using VB (6 and .NET).
16 Nov 2012 by Pascal Ganaye
I wrote a simple object copier that copies public properties.I can't figure out why the Dynamic method is a lot slower than the c# version.DurationsC# method : 4,963 ms Dynamic method : 19,924 msFull (console program) code:using System;using...
16 Nov 2012 by Sergey Alexandrovich Kryukov
Hard to say exactly why the timing results are as you observe them, but I can see one problem: you time the calls of the method incorrectly, because you don't take into account the time taken by JIT. Again, both methods are eventually JIT-interpreted, so it's pretty hard to explain why the...
17 Nov 2012 by Alan N
I modified your code slightly so that it could be compiled using all .NET versions.With .NET2 and 3.5 there was no difference in execution time between the standard and dynamic methods, both taking about 1400 - 1500ms in release mode.However .NET 4 (v4.0.30319) was a different story...
24 Apr 2016 by Member 11873265
How to check for a availability of port When Server address or IP address is given as input by a user. My Research: A custom action should be implemented A custom dialog should be created in Wix which has a editbox and save the text in a property Send the property value to the custom action...
24 Apr 2016 by Prasad Khandekar
Hello,Here is a nice[^] tip on this site. Here is another[^] in CPP.Regards,Prasad P. Khandekar
23 Jun 2009 by Ziad Elmalki
Replace any method with another method at runtime. Updated for 3.5 SP1.
1 Sep 2006 by jconwell
This tool analyses the IL of a list of assemblies, looking for types, methods, and fields that are not used by another list of assemblies. This lets you see if you have unused legacy code lying around that should be cleaned up.
28 Aug 2013 by Software Developer's Journal
The .NET platform contains no extensions which would allow for the use of advanced aspect oriented programming. But it does contain mechanisms which makes it possible to build components which provide similar functionality. We will find out how to achieve this in this article.
18 Sep 2013 by Suvabrata Roy
How compiler manage anonymous types
17 Dec 2019 by Alexandre Bencz
With this new OrangeC/C++ compiler back-end, you can compile your C code to .NET
18 Apr 2007 by Dave Curylo, MCAD
How to expose legacy or third party assemblies over WCF with simple modifications to the MSIL.
25 Aug 2005 by Krishna Prasad V.R.
This article focuses on the problems you might face and the probable solution when using .NET custom assemblies. This article also gives in-depth details of modifying .NET assemblies for which you do not have the source code.
10 Nov 2011 by zenwalker1985
I have found a few interesting things which I would like to share with you all.
17 Dec 2021 by Member 15265176
I am using PRINTDLG library for an old windows application, that has to print some files. I configured it in a way that it pick up the default printer and print the document without showing any dialog box. But the problem is when there is no...
17 Dec 2021 by Rick York
The standard system dialogs allow one to use hook procedures so it would seem like you could utilize a hook procedure and potentially adjust some items from the dialog ie., remove them from consideration. According to the docs : PRINTDLGA...
21 Feb 2008 by Fady Anwar
An article demonstrating why you should not rely on obfuscation to protect your .NET applications.
2 Jan 2020 by Alexandre Bencz
DotNetPELib is a library which abstracts managed information such as namespaces, classes, fields, methods, and instructions. The information can then be used to generate assembly language source files, or PE executables or DLLs.
6 May 2007 by Piyush S Bhatnagar
This article explains how Reflection.Emit classes can be used to dynamically generate .NET assemblies.
3 Apr 2014 by Kemeny Attila
Generate proxy class dynamically which implements interface
14 Feb 2006 by Johannes Hansen
Dynamically sorting a list by using dynamic methods and delegates.
27 Nov 2007 by Philip Liebscher
An examination of dynamic object instantiation and runtime machines to boost performance.
18 Jun 2005 by Simon McEnlly
An article on editing an assembly's manifest and some other IL attributes.
23 Jan 2016 by Afzaal Ahmad Zeeshan
C# 6 has been available for a long time, by now! Many developers have written many guides to "list" the features. I have written this post to explain those features, and to explain whether they are actually new or are they just sugar coating to the compiler.
8 May 2010 by Thiago de Arruda
Shows how to extend the proxy generated by this framework by using Reflection.Emit.
16 Oct 2013 by tcassisi
Generating typed field accessors and applying them to object mapping and SQL Stored Procedures
22 Mar 2005 by James Nies
Reflecting on Properties is nice, but often it can be too slow. This article describes an alternative method for dynamic property access.
11 Jul 2005 by Alessandro Febretti
This article describes a way to achieve fast late-bound invocation through the generation of custom MSIL code at runtime.
9 Aug 2009 by Buu Nguyen
Examine the implementation, API, and performance for Fasterflect, an alternative to the .NET Reflection API.
16 Sep 2015 by Ed Nutting
In this article I discuss the innovative approach, taken by FlingOS, to teaching OS and low-level development to high-level developers using C#.
24 Nov 2011 by Sebastian Solnica
The article describes how to make a slideshow in a debugger. It may help you understand the PDB API in System.Reflection.Emit as well as impress listeners on any debugging-related presentations. :)
2 Jul 2012 by Pieter Van Parys
How to generate assemblies at runtime using IL emit
29 May 2008 by Unknown Narrator
A GetOpt implementation for .NET.
28 Jan 2009 by Jonathan de Halleux, Nikolai Tillmann
Pex is a new tool that helps in understanding the behavior of .NET code, debugging issues, and in creating a test suite that covers all corner cases -- fully automatically.
4 Apr 2005 by Giancarlo Aguilera
A hack that enables C# 2.0 Iterators with .NET 1.1.
22 Feb 2009 by Theraot
What Microsoft didn't want you to know
5 Jul 2020 by Higty
Design mapping rule by test case and write IL code for good performance
12 Apr 2010 by zebamuskan
how can we implement media player in our windows mobile application.
24 Apr 2016 by Member 11873265
How to edit a value/field in a configuration file using wix . My research: my custom dialog which ask for user input will be as:The user entered value should be Send to custom action. public class CustomActions { [CustomAction] public static ActionResult SaveUserInfo(Session...
5 Jun 2015 by Member 10990410
I am writing plugin for Photoshop.Photoshop exposes C plug-in interface.I use WPF for graphic user interface, and C++/CLI for an intermediate layer.In one moment I call DoUI() function from C code. DoUI() is in the .cpp file compiled with /clr switch on. It means that DoUI() is...
20 Dec 2012 by Rocky_Bas
Hello,How to turnoff the Safe Mode option in windows 7 machine.Thanks in Advance.
20 Dec 2012 by AnkitGoel.com
This may...
11 Jan 2016 by Den367
Using System.Windows.Media library to create embroidery design of a glyph from true type font file
16 Jun 2007 by NineRays, Mark Sochan
Most .NET software projects can easily be tampered, exposing your software to security risks and theft of intellectual property. This article shows different techniques used to protect .NET code and determine the best protection for you. 9rays.Net offers you Spices.Obfuscator to these ends.
1 Feb 2021 by Kevin Brady
I have downloaded and installed the latest version of MSSQL Server Management Studio. From the information that I found on-line, this should have installed all of SMO. Is this correct? I cannot find the dll "Microsoft.SqlServer.Management". ...
2 Feb 2021 by RickZeeland
It could be in: Microsoft.SqlServer.SmoExtended.dll See: Transfer Class (Microsoft.SqlServer.Management.Smo) | Microsoft Docs[^] The problem with using SMO is that it can change depending on the SQL Server version you have installed, for that...
22 Nov 2009 by Philip Laureano
I've been playing around with IL lately and I think I've figured out a way to inject any IOC container (i.e. LinFu, Ninject, StructureMap, Autofac, etc) into any legacy application without changing the original source code. Would any have a use for this, or is this just a weird idea?
25 Nov 2009 by Aviad P.
Post an article about it - I am sure creative people will find good uses for it.
23 Feb 2014 by Thomas Daniels
Probably there is something wrong with the given input. You can use parameterized queries to avoid this. Using parameterized queries also protects your application against SQL Injection[^], and it also makes your query more readable.OleDbCommand oleDbCmd = new...
23 Feb 2014 by OriginalGriff
Start off by not doing it like that!Not only does it leave you wide open to SQL Injection attacks, but it probably contributes to (or causes) your problem. Never concatenate strings to form an SQL command! Always use parameterised queries.protected void Button1_Click(object sender, EventArgs...
23 Feb 2014 by Muhammad Taqi Hassan Bukhari
Error Fixed, I just change the table's Columns name.connParam = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\Projects\\App_Data\\Database.mdb; Persist Security Info=False"; Conn = new OleDbConnection(connParam); try { Conn.Open(); ...
23 Feb 2014 by Dumpala Charan
if you are using msaccess as Database execute the query in that so that you will get to know the problem in that. or Try by keeping square brackets to the coloum names. Hope it will help you.
5 Dec 2014 by Vivek S Kale
if you want to implement MVC like struture in ASP.NET how will you call controller
5 Dec 2014 by Abhinav S
These beginner links should help you -ASP.NET MVC - Controllers[^]Controllers and Action Methods in ASP.NET MVC Applications[^]ASP.NET MVC Controller Overview (C#)[^]
1 Jul 2010 by emicroxxx
Transforming ILMerge.exe to DLL [for convenient usage only]
21 Sep 2012 by icemanind
A program to compile C# code into MSIL code
27 Sep 2012 by Mattias Högström
Runtime IL-Rewriting can be used to add behavior such as logging to applications, or redirect calls from one API to another. This article and accompanying source code explains how to substitute a method call at runtime.
31 May 2012 by rcarlson-cayen, Cayen Systems
This article details how to make a legacy code base more maintainable by utilizing a JSON architecture.
9 Mar 2018 by The_Unknown_Member
When you create a class with some fields that don't have any value explicitly specified by the developer they are defaulted to their default values (for Int32 it's zero). So my question is how do they get defaulted? Does the C# compiler do something behind the scenes in the process of compiling?...
9 Mar 2018 by #realJSOP
Google is your friend: c# object defaults - Google Search[^]
9 Mar 2018 by Afzaal Ahmad Zeeshan
Apart from what John suggested in Solution 1, please also read about value-types and the reference-types in .NET framework context. In the context, if the developer leaves out the initialization step and only performs declaration, the default value is assigned — which is obvious. I am not an...
4 Apr 2006 by Salvatore Vetro
The art of swap from a database to another changing a flag
4 Nov 2015 by Pedro Benevides
It is important to know how things work behind the scenes in .NET.
6 Mar 2006 by jconwell
Introduction to creating dynamic types with Reflection.Emit.
1 May 2006 by jconwell
Part 2 of an introduction to creating dynamic types. This article shows how to actually generate the methods in a dynamic type and how to call them.
18 Apr 2003 by Sameers Javed
Start using IL Assembly Language to debug your code at low level and understand how .NET deals with your high level code
28 Feb 2012 by dare2dash
is swiching over to android apps dev is good ,i'm new in this field
28 Feb 2012 by CPallini
In my personal opinion, yes, it is good. However you should really check the job opportunities locally, in your Country.
28 Feb 2012 by Shameel
It depends on what your interests are. If you have a flair for programming then you can definitely learn android development, that doesn't necessarily mean that you have to give up what you are currently working with.