~/talk

Coding C# with C#

links:none on file
slides:none on file

Shows a working Roslyn Analyzer that scans controller methods and emits diagnostics when endpoints lack Authorize or AllowAnonymous attributes, implemented as a DiagnosticAnalyzer and covered by unit tests. Demonstrates a Source Generator that generates interfaces for mocking at compile time (in-memory, not on disk), with generated code verified by brittle string-equality tests. Notes: projects must target .NET Standard 2.0, parsing works on source strings, performance and debugging are nontrivial but the tools do produce usable results.

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Welcome and Resources
  3. 2:10Automating Checks, Not Just Code
  4. 5:13A Short History of the C# Compiler and Roslyn
  5. 8:50Roslyn Analyzers
  6. 10:05Example Analyzer: Required Attributes on Controller Endpoints
  7. 11:51Building an Analyzer Project
  8. 17:07Unit Testing Analyzers
  9. 17:40Roslyn Source Generators
  10. 20:02Example: Generating Interfaces for Mocking
  11. 24:14Testing Source Generators
  12. 25:46Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.