Chapter 2
Enhancing the Code
In this chapter, you’ll continue tweaking the simple sample; maybe you can make it better. There are two aspects of “better” I will discuss in this chapter: first, reducing code size and, second, protecting the code from unpleasant surprises. Let’s start with the code size.
Compacting the Code
The sample code presented in the previous chapter is compact. If you don’t believe me, carry out a simple experiment: write a similar application in your favorite high-level Microsoft .NET language, compile it to an executable (and make sure it runs!), disassemble the executable, and compare the result to the sample offered ...
Get .NET IL Assembler 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.