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 Updated

MSIL 

9 Mar 2018 by #realJSOP
Google is your friend: c# object defaults - Google Search[^]
25 Mar 2011 by Abhinav S
Have a look at the NGEN tool[^].
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#)[^]
10 Jan 2009 by Adnan Aman
This is my very humble effort to reply Mr. Scott Henselman's Interview questions with great respect for him.
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.
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...
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...
29 Aug 2012 by aLcoHolicDevil
I am working with sqlbulkOperations, I got one code from msdn but i have to change database to .mdb how do i do that, For instance i want to pass database name as c:\test\test.mdb instead of NorthWind here. retcode = SQLConnect(hdbc, (SQLCHAR*) "Northwind", SQL_NTS, (SQLCHAR*) NULL, 0,...
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.
27 Dec 2012 by Alexandre Bencz
Hi, I'm playing with lcc compiler for .net http://research.microsoft.com/en-us/downloads/b994fbbf-f7bb-4a4a-998c-2f6a6d340ec6/[^]https://sites.google.com/site/lccretargetablecompiler/[^]So, but, when I try to build the il generate code, I got that erro:C:\lcc>set...
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.
17 Dec 2019 by Alexandre Bencz
With this new OrangeC/C++ compiler back-end, you can compile your C code to .NET
4 Dec 2006 by Alexey A. Popov
This article is dedicated to the observable property design pattern, a very nice pattern used in the Microsoft .NET Framework, a possible memory leak problem with it, and gives a couple of ways to solve it.
20 Dec 2012 by AnkitGoel.com
This may...
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.
5 Nov 2016 by Arun Endapally
How to protect your source code from decompiling or reverse engineering
1 Feb 2011 by asheesh goja
A high performance binary serializer using Microsoft Common Intermediate Language
25 Nov 2009 by Aviad P.
Post an article about it - I am sure creative people will find good uses for it.
28 Feb 2012 by Bernhard Hiller
Think of your time horizont!When I wrote my first lines of code more than 30 years ago, software development was really different from what it is now: Object oriented programming, graphical user interface, internet, ...What ever you chose now, be prepared for a changing future, and stay...
13 Nov 2008 by Buu Nguyen
Discusses the new features of C# 4.0 including dynamic lookup, covariance/contravariance generics, named and optional paramters
9 Aug 2009 by Buu Nguyen
Examine the implementation, API, and performance for Fasterflect, an alternative to the .NET Reflection API.
4 Jul 2011 by Chad Z. Hower aka Kudzu
Introduction to writing plugs in Cosmos in C#, Assembly, or X#
4 Jul 2011 by Chad Z. Hower aka Kudzu
Several users have written to me requesting information on the new Cosmos X86 assembly level debugger. Because of the great interest I have written this short preview article.
10 Feb 2006 by Chris Stefano
Generate loader classes for faster operation using Reflection.Emit
31 Oct 2004 by Chua Wen Ching
Building Security Awareness in .NET Assemblies : Part 3 of 3
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.
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.
28 Feb 2012 by dare2dash
is swiching over to android apps dev is good ,i'm new in this field
18 Apr 2007 by Dave Curylo, MCAD
How to expose legacy or third party assemblies over WCF with simple modifications to the MSIL.
8 Mar 2011 by DEB4u
Hello there,I've created windows application which uses an remote online MYSQL database.My requirement is, whenever system has no internet connectivity, a pop up message should come and till the connection re established, the user won't be able to do anything except closing the...
11 Jan 2016 by Den367
Using System.Windows.Media library to create embroidery design of a glyph from true type font file
9 Aug 2013 by Dennis C. Dietrich
Clarifying how the .NET GC identifies objects to collect once and for all... hopefully...
26 Oct 2020 by deXo-fan
Hello, Well, the title of this question is perhaps self explanatory, but at the same time I already know the answer to that question is "No". So allow me to elaborate my question and goal a bit. There used to be a 12-byte integer type in C++ a...
29 Jul 2014 by Dileep Ashok
Hi..You can use data annotation validation in MVC.like[Required(ErrorMessage = "Please select at least one option")] public int ddlId{ get; set; }
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.
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#.
22 Jun 2005 by ediazc
Describes how to generate a WebForm using reflection from a class.
1 Jul 2010 by emicroxxx
Transforming ILMerge.exe to DLL [for convenient usage only]
28 Aug 2004 by Emilio Reale
Exporting methods for the .NET class inside VB6 or unmanaged C++.
15 May 2018 by Eric Lynch
Extends .NET reflection to decode the byte array returned by System.Reflection.MethodBody.GetILByteArray(), discusses the techniques to achieve this, and provides a brief primer on .NET reflection.
8 Mar 2011 by Espen Harlinn
How To: (Almost) Everything In WMI via C# - Part 3: Hardware[^] allows you to detect whether your computer is connected to a network - remember the computer may be connected to a network without being able to access the internet.The...
21 Feb 2008 by Fady Anwar
An article demonstrating why you should not rely on obfuscation to protect your .NET applications.
26 Feb 2005 by Fatih KIHTIR
Modifying CAPICOM Runtime Callable Wrapper (RCW) generated by TlbImp.exe to enable CAPICOM to process digital signatures with UTF8/ASCII content (mostly signed by Java).
8 Mar 2011 by fjdiewornncalwe
I wouldn't bother with a thread. If the connection attempt fails, you can simply tell the user that the connection to the database is not available and to restart the application later. Then you can either close the app yourself or let the user close it and then restart it later. Whether or not...
16 Dec 2013 by Florian Rappl
A close look at some powerful features of C# that are less known but sometimes come in very handy
10 Jul 2016 by Florian Rappl
This article introduces MAGES - a very simple, yet powerful, expression parser and interpreter.
7 May 2019 by Florian Rappl
Want to modernize your C# codebase? Let's continue with methods.
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.
30 Mar 2007 by GaryWoodfine
Analysis of the CIL generated by the .net compiler for 4 Languages in VS 2005
7 Feb 2005 by Giancarlo Aguilera
A discussion of some differences between VB and C# MSIL code.
4 Apr 2005 by Giancarlo Aguilera
A hack that enables C# 2.0 Iterators with .NET 1.1.
5 Jul 2020 by Higty
Design mapping rule by test case and write IL code for good performance
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.
21 Sep 2012 by icemanind
A program to compile C# code into MSIL code
30 Sep 2013 by Imre S Lengyel
Use ILSpy to perform a more comprehensive check on Emitted assembiles
29 Aug 2012 by JackDingler
Run odbcad32.exe and add your database as a DSN, and use the name you provide for the DSN, in your code.Connecting with SQLConnect[^]
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...
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.
26 Jan 2018 by Jason R. Fruit
Implement a compiling calculator to learn about .NET CIL compilation
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.
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.
24 Nov 2014 by Jeremy Falcon
A beginner's guide to talking like a computer.
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.
14 Feb 2006 by Johannes Hansen
Dynamically sorting a list by using dynamic methods and delegates.
23 Mar 2015 by John550
i have a MSI setup file which was singed (HTTPS).i have added one property to MSi ,after adding property again i tried to sign the certificate using openSSL based sign code tool.whether now this certificate will be self signed certificate?.if it is self signed it will effect my existing...
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.
26 Oct 2020 by KarstenK
There is support in some C++ libraries like Boost for that. Some compilers are not handling exact sizes for data types, but are using alignment. The advantage is that full bytes are used and so the processing speed is better, because no efforts...
3 Apr 2014 by Kemeny Attila
Generate proxy class dynamically which implements interface
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". ...
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.
22 Dec 2005 by Mainak Saha
An article on using the __cdecl callback from C#, changing compiler service.
2 Mar 2023 by Mark Pelf
Overview of 5 free .NET Decompilers
6 Apr 2017 by matt warren
Whilst writing a previous blog post I stumbled across the .NET Interpreter, tucked away in the source 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.
24 Sep 2013 by Maximilien
What abou a CBitmapButton ?If you want a full bitmap button you will have to "owner draw" it.Just google it; there are tons of examples here on code project.
1 Mar 2015 by mbarbac
The seventh version of the dynamic, configuration-less and self-adaptive Kerosene ORM library, that provides full real support for POCO objects, natural SQL-like syntax from C#, and advanced capabilities while being extremely easy to use.
1 Mar 2015 by mbarbac
A deep dive tutorial on Kerosene ORM Dynamic Records and other core concepts of the library
28 Feb 2012 by Mehdi Gholam
Currently Android has around 50% market share on mobile devices. http://www.dailytech.com/Android+Market+Share+Reaches+56+Percent+RIMs+Microsofts+Cut+in+Half/article22852.htm[^]So choosing to develop for that platform is a good option, the real question is how good you are at development...
18 Feb 2014 by Mehdi Gholam
Both 1,2 have nothing to do with MSIL and there is no benefit since they are handled by the CLR (common language runtime) and BCL (base class libraries) internally.Generally you don't need to know IL unless you are doing runtime code generation or reverse engineering.
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...
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...
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...
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...
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(); ...
22 Jun 2014 by Nathaniel Moschkin
Topics and methods on programming in .NET and performance considerations
25 Mar 2011 by Nick Reshetinsky
Hi guys!I'm creating an application which has a bunch of complex algorithms that require pretty much time to execute ... I know that C# code (MSIL) is converted to machine code due to CLR..but how can I manually precompile my critical and complex methods into machine code at...
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.
25 Mar 2011 by OriginalGriff
If you are sure it is the algorithms that are slowing things down (and you would be surprised how often it turns out to be something else entirely) then the best course of action is to recode them into a DLL in a native language, and call that from your C#. Profile it first, and check that...
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...
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...
26 Oct 2020 by OriginalGriff
Yes it can be done: just because something isn't directly supported by the processor doesn't mean you can't use it in assembler - think about a BigInt value where each decimal digit is stored in a nibble - so two digits fit in a byte - and an...
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...