Guided course · C# Language
C# Equality and Hash Collections
- Choose equality and ordering rules for C# keys.
- Avoid mutable-key bugs in dictionaries and hash sets.
- Compare records, structs and custom equality policies.
- Understand collisions, hash codes and collection lookups.
Intermediate4 modules · 12 lessons · 2 h 49 min · 4 practice tests · 2 free
Module 1 · Equality, comparers and reliable keys
3 lessons · 31 minModule 2 · Records, Structs and Custom Comparers
4 lessons · 52 min- 04Record Equality in Practice: Collection Members, Inheritance and Mutable Keys (included with Full Access)13 min
- 05Struct Equality: Boxing, One-Field Hash Codes and Floating-Point Keys (included with Full Access)13 min
- 06Custom IEqualityComparer<T>: One Policy Across Distinct, GroupBy, Join and Dictionaries (included with Full Access)13 min
- 07Hash Quality: Counting Collisions, HashCode.Combine and Per-Process String Hashes (included with Full Access)13 min
Module 3 · Ordering, Collections and Identity
4 lessons · 51 min- 08Ordering Is Not Equality: Comparers, Sorted Collections and Culture-Aware Strings (included with Full Access)14 min
- 09Collections as Values: Structural Equality, Set Keys and Frozen Lookups (included with Full Access)12 min
- 10Dictionary APIs That Decide Correctness: TryAdd, In-Place Updates, GetOrAdd and Span Lookups (included with Full Access)13 min
- 11Entity Identity: Id-Based Equals, Transient Objects and Hash Codes That Change (included with Full Access)12 min
Module 4 · Practice and Assessment
1 lesson · 35 minPractice tests
TechInterviewNotes Editorial Team ·