Chapter 3: Predefined Data Types and Memory Allocations

In this chapter, you will learn about C# predefined (that is, built-in) data types and C# object types, along with the different types of memory allocations.

The most basic requirement for improving the performance of your application is to understand the predefined data types and their sizes. There may be times when the memory usage of your applications is critical. Knowing the size of data types and the values they hold can help you make accurate memory usage estimates, as do memory profiling tools such as dotTrace and dotMemory, which are developed by JetBrains. We will be discussing the use of dotTrace and dotMemory in the next chapter. It also makes sense to know the different types ...

Get High-Performance Programming in C# and .NET 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.