Inline Methods II

Some time ago I read the .NET 3.5 Service Pack 1 would bring some nice improvements in the JIT compiler for the x86. Among them there were some modifications regarding how the JIT inlines methods (see my previous post about Inline Methods). Today I’ve seen this post from Vance Morrison where describes the heuristic used […]

Executing dynamic IL with DynamicMethod

One of the features we have in .NET is the ability to execute IL code generated dynamically, in fact there is a complete namespace to generate code at runtime called System.Reflection.Emit Prior to .NET Framework 2.0 if we wanted to execute the IL code generated we needed to deal with a dynamic assembly making use […]

Inline Methods

Method inlining is an optimization technique that consists of putting the body of a method inside the body of all the caller methods and removing the original method. Let’s suppose the next sample: class Demo { public void Talk() { SayHello(); WaitUserAction(); } private void SayHello() { Console.WriteLine(“Hello!”); } … } To inline the method […]

Licensing Applications with .NET

.NET has a feature from the version 1.0 that allows licensing the components you build. This licensing model can be used in the same way for Windows and ASP.NET server controls and can be easily extended. The way in which it works is so simple, you only need to follow these steps: Apply the attribute […]

Changes from Framework 2.0.50727.42 to Framework 2.0.50727.1378

In my last post I wrote about a problem when compiling code for Framework 2.0 in a computer with Visual Studio 2008 installed. Just to resume, the problem is that after you install Visual Studio 2008 beta 2, your assemblies are updated from version 2.0.50727.42 to 2.0.50727.1378. This version introduces several changes in classes, if […]