Browse by Tags

All Tags » Introduction to MSIL (RSS)
Sorry, but there are no more tags available to filter with.

Introduction to MSIL – Part 8 – The for each Statement

The for each statement; popularized by Visual Basic , humbly accepted by C++ , and forever immortalized by a creation lovingly known as ECMA-334 (OK so some people simply call it C#). In this installment of my open-ended series entitled Introduction to...
Posted by KennyKerr | 2 comment(s)

Introduction to MSIL – Part 7 – Casts and Conversions

After a brief hiatus, I decided to post a few more parts of the Introduction to MSIL series. Casting and type conversion are often raised as topics of concern among programmers. It might be concerns over performance and safety or simply that the implications...
Posted by KennyKerr | 4 comment(s)

Introduction to MSIL – Part 6 – Common Language Constructs

In parts 1 through 5 of the Introduction to MSIL series we focused on MSIL and the constructs it provides for writing managed code. In the next few sections we are going to examine some common language features that are not intrinsic to instruction-based...
Posted by KennyKerr | 2 comment(s)

Introduction to MSIL – Part 5 – Exception Handling

In this part of the Introduction to MSIL series I will introduce the constructs that the CLI provides for exception handling. A try block is used to protect a range of instructions. If an exception is thrown by one of the instructions in the protected...
Posted by KennyKerr | 4 comment(s)

Introduction to MSIL – Part 4 – Defining Type Members

In Part 3 of the MSIL series , I introduced the basic syntax for defining types. Using the .class directive, you can define reference types and value types. Choosing the type attributes correctly, you can exercise complete control over the definition...
Posted by KennyKerr | 1 comment(s)

Introduction to MSIL – Part 3 – Defining Types

In this installment of the MSIL series , I describe how types are defined. Here is a minimal reference type called House. As I write this, we are looking for a house in British Columbia , so this was the first thing that came to mind. .class Kerr.RealEstate...
Posted by KennyKerr | 8 comment(s)

Introduction to MSIL – Part 2 – Using Local Variables

In part 2 of the Introduction to MSIL series, I will be exploring the use of local variables. Without variables, programs would not be very interesting. To illustrate the use of variables, let’s write a simple program to add numbers together. In an MSIL...
Posted by KennyKerr | 6 comment(s)

Introduction to MSIL – Part 1 – Hello World

When describing C++/CLI and how it relates to C#, I am often tempted to discuss the Microsoft intermediate language (MSIL) that the Visual C++ and Visual C# compilers generate. The trouble is that most programmers are not familiar with MSIL and programs...
Posted by KennyKerr | 10 comment(s)
More Posts