Core C# dives into core C# features and gives you details on top-level statements and information on declaration of variables and data types. The chapter covers target-typed new expressions, explains nullable reference types, and defines a program flow that includes the new switch
expressions.
This chapter contains the following code samples:
- TopLevelStatements (C# 9 top-level statements)
- CommandLineArgs (passing command line arguments)
- VariablesScopeSample (scope of variables)
- NullableValueTypes (nullable struct)
- NullableReferenceTypes
- ProgramFlow
- SwitchStatement
- SwitchExpression
- ForLoop (using for)
- StringSample (initializing the string type, string concatenation)
For code comments and issues please check Professional C#'s GitHub Repository
Please check my blog csharp.christiannagel.com for additional information on topics covered in the book.
Thank you!
Source code in this chapter:
- Implicit Namespaces
- Global Using Directive (StringSample)
- File-Scoped Namespace (Math project)