Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 1.2 KB

File metadata and controls

30 lines (23 loc) · 1.2 KB

Learning objectives

  • Know how to define const values.
  • Know how to define readonly values.
  • Know when to use const or readonly.
  • know how to make a collection read-only
  • understand the difference between the role of the readonly modifier and the use of read-only collections
  • know how and when to use defensive copying

Out of scope

  • readonly structs
  • readonly properties
  • ref readonly

Concepts

  • constants: know how to define const values; know how to define readonly modifier know when to use const or readonly.
  • readonly-collections: know how to make a collection read-only; understand the difference between the role of the readonly modifier and the use of readonly collections
  • defensive-copying: know how and when to use defensive copying

Prerequisites

  • classes: know how to define fields.
  • basics: know how to define variables.
  • object-initializers: part of the provided code
  • arrays: referred to in about.md
  • properties: understand how accessors are independent of each other
  • dictionaries: understand the syntax and semantics of dictionaries (incl. in code)
  • nested-types: understand the syntax of semantics nested types (incl. in code)