Type Design and Implementation

  • Nick Wienholt


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.


Type Design Reference Type Empty String Hash Code Performance Delta 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Nick Wienholt 2004

Authors and Affiliations

  • Nick Wienholt

There are no affiliations available

Personalised recommendations