Showing related tags and posts accross the entire site.
-
In part two I explained how to use locals in IL today I will show you how to use a arguments in IL. Here is the method that we will define in IL. There is no advantage of defining a method like this in IL but for this post it's sufficient. 1 public string OneArgumentInCSharp( string date) 2 { 3 return...
-
In part one I explained how to call a method from IL today I will show you how to define a local variable in IL and use it. Here is the method that we will define in IL. There is no advantage of defining a method like this in IL but for this post it's sufficient Code sample 2 is the code that generates...
-
The first question is why do you need know IL if you have C# VB.NET and other languages? My reason to learn IL is when I'm using Reflection it is often too slow. So I need to rely on Reflection.Emit. For the lucky developers there is a new way in .NET 3.5 and it is called Lambda Expressions . So...