Part II: Understanding the C# object model

In Part I, you learned how to declare variables, use operators to create values, call methods, and write many of the statements you need when you implement a method. You now know enough to progress to the next stage: combining methods and data into your own functional data structures. The chapters in Part II show you how to do this.

In Part II, you’ll learn about classes and structures, the two fundamental types that you use to model the entities and other items that constitute a typical C# application. In particular, you’ll see how C# creates objects and value types based on the definitions of classes and structures, and how the common language runtime (CLR) manages the life cycle of these items. You ...

Get Microsoft Visual C# Step by Step, 8th Edition 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.