~/talk

C# Values and Value Types

Talkat ACCU 2022 · 2022-04-06..04-09· [c-and-cpp]
links:none on file
slides:none on file

Compares classes, structs, records and record structs by showing concrete code: equals/getHashCode overrides, IEquatable, operator overloads, and the compiler-generated implementations for positional records; demonstrates non-destructive mutation with with-expressions and shows when the compiler’s defaults fail by building Color and Temperature examples that include unit-aware factory methods and validation. Flags surprising pitfalls like default initialization, mutable record-struct defaults, virtual clone costs, and when a handwritten class/struct remains the better choice.

AI-written summary · about

  1. 0:00Start
  2. 1:59Humble Struct the Basic Value Type
  3. 4:54Nullable Reference Variables
  4. 15:32Value Tuple
  5. 25:45Positional Records
  6. 27:25Non-Destructive Mutation
  7. 29:47Record Structs
  8. 37:13Value Types
  9. 37:48Data Transfer Object
  10. 42:53Data Validation How Do We Handle out of Range Values
  11. 43:48Discard Operator
  12. 44:25Theoretical Maximum Temperature
  13. 46:40Range Validation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.