Abstract
Designing types so that they interact well with the CLR and Framework Library requires some effort. When designing the interface of a type, and defining the type’s interaction with other types, modeling the problem domain is usually the highest priority. This is quite reasonable, and is one of the main benefits object-oriented programming offers. Taking a type whose semantics were developed from an analysis of the problem domain and getting it to work efficiently with the CLR is the subject of this chapter. Any type that can pass the tests of a compiler and be converted into intermediate language will enjoy a reasonable existence with other CLR types, but when efficiency and elegance are important design goals, conforming to CLR design patterns is an important consideration.
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 Nick Wienholt
About this chapter
Cite this chapter
Wienholt, N. (2004). Type Design and Implementation. In: Maximizing .NET Performance. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0784-9_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0784-9_3
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-59059-141-3
Online ISBN: 978-1-4302-0784-9
eBook Packages: Springer Book Archive