Advanced C#: Classes, Records, and Structs
1h 18mAdvanced2024-06-07
Authors

Joe Marini
Senior Developer Advocate at Google, Developer
Course details
The .NET Framework provides several ways of managing data within your application. Choosing the right tool for the job can help your app manage memory more efficiently and provide users with better performance. In this advanced course, learn the differences between structs, classes, and records in C#. Each data type has its own semantics for common scenarios such as equality testing, implementing behavior, and value/reference typing. All three data types provide great ways of working with structured data, but each one has its strengths and weaknesses. Tune in to better understand how these features can help you improve your code.
Skills covered
C#AdvancedProgramming LanguagesMicrosoftSoftware Development
Concepts
0. Introduction
- 01 - The right C# structure for the right purpose
- 02 - Getting started
- 03 - Using CoderPad with this course
1. Overview
- 04 - Understanding value and reference types
- 05 - Comparison of data structure types
- 06 - Object immutability
2. Classes
- 07 - Defining classes
- 08 - Class inheritance
- 09 - Equality checking
3. Structs
- 10 - Defining structs
- 11 - Members within structs
- 12 - Immutable structs
- 13 - Structs and value semantics
- 14 - Solution - Structs
4. Records
- 15 - Defining records
- 16 - Automatic record features
- 17 - Record immutability
- 18 - Record inheritance
- 19 - Record structs
- 20 - Solution - Records
Conclusion
- 21 - Next steps