Now, with C# 9, there are a number of different ways to create data types in C#:
- tuples
- records
- anonymous types
- classes
- structs
Tuples and records, in particular, are great concepts for beginners to learn to build data structures. They both should be introduced before classes.
Open question: Should structs and interfaces be part of this series, or in the fundamentals section?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 400547
Now, with C# 9, there are a number of different ways to create data types in C#:
Tuples and records, in particular, are great concepts for beginners to learn to build data structures. They both should be introduced before classes.
Open question: Should structs and interfaces be part of this series, or in the fundamentals section?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 400547