One lesson
Read and run a C# program
Permanent access to this lesson and its included learning materials and quiz.
Under Construction
Programming languages · 30 lessons · up to 10 minutes each
Thirty authored lessons progress from first console programs through collections, object design, async code, tests, and runtime behavior.
One-time purchase · USD
Access is attached to your account after payment is verified. No subscription.
One lesson
Permanent access to this lesson and its included learning materials and quiz.
Full category
Permanent access to the lessons published in this track when purchased. Future lessons are not included. 30 of 30 lessons are published; 0 are in owner review and 0 are Coming Soon.
Lessons 1–10
Topic: Read and run a C# program
Identify the entry point, statements, and console output in a small C# program.
Topic: Store values in variables
Declare named C# variables and update a value with the correct type.
Topic: Choose built-in types
Choose int, decimal, bool, and string for the values a program needs.
Topic: Build expressions with operators
Combine arithmetic and comparison operators while respecting precedence.
Topic: Format strings with interpolation
Build readable output with interpolated values and format specifiers.
Topic: Branch with if and switch
Select one code path from mutually exclusive conditions.
Topic: Repeat work with loops
Use for, foreach, and while loops for known and data-driven repetition.
Topic: Write and call methods
Define a method with parameters and a return type, then call it safely.
Topic: Handle arrays and ranges
Read and update array elements without crossing valid index bounds.
Topic: Diagnose compiler errors
Use a compiler message to locate a syntax or type error and repair it.
Lessons 11–20
Topic: Choose List and collection operations
Add, remove, and inspect values in a strongly typed List<T>.
Topic: Look up values with dictionaries
Store and retrieve keyed values with Dictionary<TKey,TValue>.
Topic: Filter and project with LINQ
Use Where and Select to filter records and shape a new result.
Topic: Create classes and properties
Model an entity with a class, constructor, and validated property.
Topic: Use records for value data
Create an immutable record and use its value-based equality behavior.
Topic: Define behavior with interfaces
Express a small contract with an interface and implement it in a class.
Topic: Make reusable generic methods
Use a type parameter to write a method that works with multiple types.
Topic: Make nullable intent explicit
Represent missing values with nullable references and handle them safely.
Topic: Raise and handle exceptions
Throw a meaningful exception and catch only the failure a caller can handle.
Topic: Read and write text files
Use a scoped file API to read text and handle a missing file.
Lessons 21–30
Topic: Await asynchronous work
Return Task or Task<T> and await an asynchronous operation without blocking.
Topic: Cancel long-running work
Pass CancellationToken through an asynchronous method and honor cancellation.
Topic: Use delegates and lambdas
Pass a behavior as a delegate and express a short operation with a lambda.
Topic: Match values with patterns
Use switch expressions and property patterns to handle known shapes clearly.
Topic: Build lazy sequences with yield
Use yield return to produce a sequence only as callers enumerate it.
Topic: Add metadata with attributes
Read an attribute as metadata and keep runtime reflection narrowly scoped.
Topic: Use structs and value semantics
Choose a small value type and explain when copying it is appropriate.
Topic: Protect shared state
Use a thread-safe collection or lock to prevent unsafe concurrent updates.
Topic: Test a method with boundaries
Write focused tests for a method’s normal, empty, and invalid inputs.
Topic: Package a small C# application
Build and publish a small .NET application with its target framework stated.
Each lesson cites official language documentation and includes a worked example, expected result, practice task, and mapped quiz.
All 30 lesson texts, quizzes, and editable exercises are authored. Isolated code execution still needs a provisioned runtime for this language; no output or score is invented.