Skip to content
ballmüllersolutions logo Send an email Call us

Lesson 15 of 49about 180 minutes

Module 1.2 · The language

Scope and lifetime

What you learn in this lesson

  • explain in which block a variable is valid and how long it lives
  • read and fix errors like CS0103, CS0128 and CS0136
  • know fields as values that live longer than a method call, and see their danger
  • name fixed values with const and readonly
  • recognize shadowing of names, including a namespace that shadows a class
  • keep the Kladde free of shared state, except for the list that is passed along

This lesson belongs to course K1

You will see this lesson's text and video once you have bought the course. The goals above show what you learn here.

€149.00

incl. VAT, one-time payment

Access to all of the course's lessons with their exercises, solutions and videos on this site, for 24 months from the purchase. A self-study course: no tutoring, no exams or grading by us, and no certificate.

Sign in and buy

To course K1

To the overview: K1 Getting started: programming with C#