Skip to content

C# / Beginner · Free public pilot

Learn C# in 7 Days

Build a foundation and a working study planner. Read, predict, run, change and explain each program.

Start your first lesson →

Start from zero. Take your own time.

No prior programming, account or installation required. Allow 90–120 minutes per day including practice; these are author estimates. Split days across sessions freely. Seven days builds a foundation, not mastery.

All 30 lessons are open as a pilot. C# 14 compiles with the real Roslyn compiler and runs on .NET WebAssembly in code-playpad, which is experimental. The first Run downloads about 14 MB, then caches the compiler. Input must be supplied before Run. Stop ends a long run.

Each day ends with independent practice. Hints offer an idea, then a first step, before a worked solution. Day 7 includes a downloadable project and optional local instructions. Completion is saved only in this browser. Return a few days later for the final review.

We use top-level statements so your first program is one line, then add methods, lists, dictionaries, classes and records. C, C++ and Java are not prerequisites. Inheritance, interfaces and asynchronous code are later topics. Threads are not supported by this browser runtime, and this course does not need them.

Ready for interfaces, generics and LINQ? Continue with Intermediate C# →

Day 1 · About 100 minutes

Your First C# Programs

Print a calculated study plan and fix a compiler error.

  1. Hello, C#25 min · Read, predict and practice
  2. Variables and Types25 min · Read, predict and practice
  3. Numbers and Text25 min · Read, predict and practice
  4. Checkpoint: Your First Study Plan25 min · Independent checkpoint

Day 2 · About 100 minutes

Decisions and Repetition

Classify sessions and count toward a goal with bounded loops.

  1. Conditions25 min · Read, predict and practice
  2. Choosing with switch25 min · Read, predict and practice
  3. Loops25 min · Read, predict and practice
  4. Checkpoint: Reach a Goal25 min · Independent checkpoint

Day 3 · About 100 minutes

Methods and Checks

Write small methods and prove their boundaries with your own checks.

  1. Methods25 min · Read, predict and practice
  2. Parameters and Scope25 min · Read, predict and practice
  3. Checking Your Code25 min · Read, predict and practice
  4. Checkpoint: Tested Progress25 min · Independent checkpoint

Day 4 · About 100 minutes

Strings and Collections

Clean text, store tasks in a list and total minutes per topic.

  1. Working with Strings25 min · Read, predict and practice
  2. Lists and foreach25 min · Read, predict and practice
  3. Dictionaries25 min · Read, predict and practice
  4. Checkpoint: Minutes by Topic25 min · Independent checkpoint

Day 5 · About 110 minutes

Classes and Records

Model tasks with types that protect their own rules.

  1. Classes and Objects30 min · Read, predict and practice
  2. Protecting an Object's Rules25 min · Read, predict and practice
  3. References, Values and Records25 min · Read, predict and practice
  4. Checkpoint: A Small Planner30 min · Independent checkpoint

Day 6 · About 105 minutes

Input, Errors and Files

Validate supplied input, handle failure and connect several source files.

  1. Reading Input25 min · Read, predict and practice
  2. Parsing and Validating25 min · Read, predict and practice
  3. Exceptions25 min · Read, predict and practice
  4. Checkpoint: Several Source Files30 min · Independent checkpoint

Day 7 · About 120 minutes

Finish Your Study Planner

Test, extend and download a working planner, then solve a fresh brief.

  1. The Study Planner Brief15 min · Read, predict and practice
  2. Assemble the Study Planner30 min · Read, predict and practice
  3. Test the Planner20 min · Read, predict and practice
  4. Extend and Download Your Planner20 min · Read, predict and practice
  5. On Your Own: A Reading Log35 min · Independent checkpoint
  6. Come Back Later30 min · Extra delayed review