Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.25 KB

File metadata and controls

33 lines (22 loc) · 1.25 KB

Readme - Code Samples for Chapter 2, Core C#

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!

Updates with C# 10

See Updates with C# 10

Source code in this chapter:

  • Implicit Namespaces
  • Global Using Directive (StringSample)
  • File-Scoped Namespace (Math project)