Abusing C# More
summary
Shows concrete C# tricks and the exact surprises they cause: embedding the Mongolian Vowel Separator inside identifiers to hide tokens (compilers differ by Unicode version), using nameof with dynamic to produce arbitrary literal text, casting lambdas/local functions inside interpolated strings, and a FormattableString-based SQL builder that generates SqlCommand plus parameters by using IFormattable.ToString to set DbType — the SQL approach compiles and runs. Benchmarks run a billion iterations and drop a 12s loop to ~2s by avoiding readonly-copy costs on large structs.
AI-written summary · about
chapters (27)
- 0:00Introduction
- 2:45Mongolian vowel separator
- 6:15Unicode
- 10:21Strings
- 14:17Deconstruction
- 17:08Format
- 20:54lambda expressions
- 25:51lazy evaluation
- 34:54formattable string
- 37:09sequel parameters
- 38:09format string
- 39:59run code
- 41:59performance
- 43:39performance test
- 45:19tempbitszero
- 46:09readonly
- 47:09mutate
- 49:04readwrite
- 49:19readonly fields
- 51:14config
- 51:29var
- 52:19scroll
- 52:59consoledot
- 53:39implicit conversion
- 53:59integer conversion
- 54:24overload
- 57:54Null Conditional Operator








