Types
This chapter is an introduction of Microsoft Visual C# 2008, including LINQ, which is the most important new feature in C#. The remaining chapters of this book provide the underlying details of LINQ and other topics introduced in this chapter, beginning with the next chapter, which pertains to types.
The core ingredient of most programming languages is the type. The term type encompasses classes, structures, interfaces, and enumerations. Classes are reference types and are placed on the managed heap, structures are value types and appear on the stack, and an enumeration is a set of flags.
Even a nontrivial C# program has at least one type. Literarily, except for namespaces, every entity in C# is a type or a member of a type. This includes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access