The Future of C#
summary
The C# compiler is rewritten from scratch in C# and exposed as Roslyn open-source compiler with a public syntax/semantic API that IDEs and extensions use. The demo builds a working analyzer and code fix that adds braces analyzer + code fix, debugs by launching another Visual Studio instance, and shows previews derived from immutable syntax trees so alternate trees coexist. Language tweaks shown include using static imports, expression-bodied members, null-conditional operator, async in catch/finally, and proposed string interpolation.
AI-written summary · about
chapters (14)
- 0:00Introduction to Roslyn
- 1:13Compiler architecture shift
- 4:11Goals and open source
- 6:13Demo and setup
- 7:28IDE code intelligence
- 10:28Building custom diagnostics
- 17:40Implementing code fixes
- 24:15Q&A: Tooling and strategy
- 27:46New language features
- 31:24Syntax sugar improvements
- 34:08Null-conditional operators
- 37:32Async and exception filters
- 40:33String interpolation
- 42:50Future language direction
related talks
01h 01mBuilding Code Analyzers with the new C# compiler platform (Roslyn)
50mAutomate Yourself Out Of a Job With Roslyn
01h 06mThe State of C# - What Have I Missed?
50mImproving Source Code with Roslyn
39mThe State of C# - What Have I Missed?
01h 08mAnalyzing source code using Roslyn
37mC# 8 and Beyond
49mRoslyn for the rest of us
