Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

C# Essential Training 1: Types and Control Flow

via LinkedIn Learning

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn about classes, structs, record, organizing C# code, variables, enums, nullable types, and more.

Syllabus

Introduction
  • Explore the essentials
  • What you should know
1. C# in Context of .NET
  • C# compiles to MSIL
  • .NET runtime is responsible for running MSIL
  • The base class library
  • NuGet packages
  • Compiling C# to a library or executable
2. Working with Classes, Structs, and Records
  • Understanding classes, structs, and records
  • Defining constructors
  • Object initialization
  • Initialize only properties
  • Cloning and copying objects
  • Equality comparisons
  • Defining abstract classes
  • Creating static classes
3. Organizing C# Code
  • Using namespaces to organize code
  • Referencing .NET assemblies
  • Applying access modifiers
  • Aliasing namespaces for clarity
4. Variables Revisited
  • Declaring variables using types
  • Using the var keyword
  • Working with anonymous types
  • Using dynamic variables
5. Working with Enums and Nullables
  • Defining enums
  • Enabling multiple enum values
  • Testing enum values
  • Understanding nullable types
  • Using nullable types
  • Working with null objects
  • Understanding nullable reference types
  • Working with nullable reference types
6. Using Patterns in Control Flow
  • If and switch revisited
  • Switch statement vs. switch expression
  • Using the is expression
  • Introduction to patterns
  • Constant, relational, and logical patterns
  • Property pattern
  • Guard conditions
Conclusion
  • Learn more and build something

Taught by

Matt Milner

Reviews

4.5 rating at LinkedIn Learning based on 151 ratings

Start your review of C# Essential Training 1: Types and Control Flow

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.