YoVDO

C# Essential Training: 1 Syntax and Object Oriented Programming

Offered By: LinkedIn Learning

Tags

C# Courses C Programming Courses Object-oriented programming Courses

Course Description

Overview

Learn about classes, structs, record, organizing C# code, variables, enums, nullable types, and more.

Syllabus

Introduction
  • Explore the essentials
  • What you should know
  • CoderPad tour
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
  • Solution: Expressing equality
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
  • Solution: Dynamic keyword
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
  • Solution: Enum Flags
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
  • Solution: Switch expression using patterns
Conclusion
  • Learn more and build something

Taught by

Bruce Van Horn

Related Courses

3D Art and Audio Pipeline
Unity via Coursera
3D Interactions and Navigation
Unity via Coursera
ABC du langage C
Institut Mines-Télécom via France Université Numerique
Abstraction, Problem Decomposition, and Functions
University of Colorado System via Coursera
Add Gore to Your Game in Unity
Coursera Project Network via Coursera