Abusing C#
summary
Shows concrete C# tricks and a GitHub repo with runnable code: Unicode oddities using the Mongolian Vowel Separator to create visually identical but distinct identifiers; using nameof and dynamic to embed unquoted text; culture-varying deconstruct extensions and using static to import only chosen extension sets; Roslyn analyzers to enforce attributes on generic type parameters; casting lambdas inside interpolated strings to invoke code at formatting time; a safe-parameterization pattern via FormattableString SQL params; and a custom operator-overloaded LINQ toolkit (divide, unary +/− modes) that actually compiles and runs.
AI-written summary · about
chapters (32)
- 0:00Intro
- 0:57Abusing C
- 3:45Unicode
- 6:35History
- 7:26Specification
- 12:11Dynamic
- 15:56Dates
- 17:47Date Format
- 19:20Using Static
- 21:15Using Regions
- 21:53Expression Body Members
- 24:44Preprocessor Oddities
- 25:13Multiline Comment
- 27:56Multiline Strings
- 28:50Using Attributes
- 31:31String Interpolation
- 31:55Lambda Expressions
- 34:33Func of Strings
- 37:34Brief diversion
- 38:20Implicit conversion
- 39:17Formattable strings
- 40:30Link query
- 41:15Capture capture
- 42:10Formattable
- 43:24Never write sequel
- 44:15New sequel command
- 45:43New sequel method
- 47:27Format capturing parameter
- 49:27Static tool analysis
- 51:20Link to Operators
- 54:07Division
- 58:46Unary plus
related talks
37mC# 8 and Beyond
56mChange your habits: Modern techniques for modern C#
49mEngineering & Technical Highlight: Let's Do Some Crimes. The wonders of abusing C# generics.
01h 09mFunctional Programming with C#
58mWhat's new in C# 11
01h 06mThe State of C# - What Have I Missed?
58mFunctional Programming with C#
51mThe Future of C#
