MSIL in Depth

Here are some basic facts about MSIL programming. The content of an MSIL program is case-sensitive. MSIL is also a free-form language. Statements can span multiple lines of code, with lines broken at the white space. Statements are not terminated with a semicolon. Comments are the same as in the C# language. Double slashes (//) are used for single-line comments, and "/* comment */" is used for multiline comments. Code labels are colon-terminated and reference the next instruction. Code labels must be unique within the scope of the label in question.

In addition to the evaluation stack, the other important elements of an MSIL application are directives and the actual MSIL source code. Directives are dot-prefixed and are the declarations ...

Get Programming Microsoft® Visual C#® 2008: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.