Advertisement

Type Internals

  • Sasha Goldshtein
  • Dima Zurbalev
  • Ido Flatow

Abstract

This chapter concerns the internals of .NET types, how value types and reference types are laid out in memory, what the JIT must do to invoke a virtual method, the intricacies of implementing a value type properly, and other details. Why would we trouble ourselves and spend a few dozen pages discussing these inner workings? How can these internal details affect our application’s performance? It turns out that value types and reference types differ in layout, allocation, equality, assignment, storage, and numerous other parameters—which makes proper type selection of paramount importance to application performance.

Keywords

Hash Table Object Reference Method Table Code Address Reference Type 
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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Sasha Goldshtein, Dima Zurbalev, and Ido Flatow 2012

Authors and Affiliations

  • Sasha Goldshtein
  • Dima Zurbalev
  • Ido Flatow

There are no affiliations available

Personalised recommendations