Skip to Content
.NET IL Assembler
book

.NET IL Assembler

by Serge Lidin
June 2014
Intermediate to advanced
492 pages
14h 35m
English
Apress
Content preview from .NET IL Assembler

Chapter 3

image

Making the Coding Easier

I don’t know about you, but for me this endless typing and retyping of the same code again and again is fun way below the average. Let’s see how ILAsm 2.0 or later can make this work less tedious. There are three useful additions to the assembler syntax that can be exploited: aliasing, compilation control directives, and special keywords for the current class and its parent.

Aliasing

In the sample Simple2.il presented in the previous chapter, the methods of console input/output were called four times (one time for input and three times for output). And every time you had to type [mscorlib]System.Console::WriteLine ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro .NET Performance

Pro .NET Performance

Sasha Goldshtein, Dima Zurbalev, Ido Flatow

Publisher Resources

ISBN: 9781430267607Purchase book