Abstract
In this chapter, I’ll carry on where I left off at the end of Chapter 1. In Chapter 1 you learned many of the principles on which IL is based: IL assembly syntax, the concept of the evaluation stack, and how to code a simple procedural program in IL. However, I haven’t yet introduced object-oriented programming in IL. In the previous chapter, everything you did was essentially procedural. You did see how to define classes, but in the examples in Chapter 1, I was generally careful to use only static methods. This chapter will rectify that by discussing how to define and use types in IL, including defining instance fields, methods, properties, and constructors. I’ll also show you how to code some more advanced .NET constructs such as delegates—and the chapter will end by applying what you’ve learned and then examining and compare the IL emitted by the C#, VB, and C++ compilers.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2004 Simon Robinson
About this chapter
Cite this chapter
Robinson, S. (2004). Intermediate Language: Digging Deeper. In: Expert .NET 1.1 Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0726-9_2
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0726-9_2
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-59059-222-9
Online ISBN: 978-1-4302-0726-9
eBook Packages: Springer Book Archive