~/talk

Unveiling .NET Secrets with the World's Smallest C# Program

Talkat NDC London 2025 · 2025-01-27..01-31· [dotnet]
slides:none on file

Creates a two‑character C# file "{}" and compiles it via the Roslyn CSC invoked through dotnet to produce a DLL and PDB, runs to ExitCode 0 after adding a runtimeconfig.json. Uses DotPeek to show the compiler-generated Program.Main, inspects the 12 bytes of IL in a hex editor, watches hostfxr → hostpolicy.dll → coreclr load with WinDbg, observes 42 strings on the heap and JIT output for tiered compilation, and traces file operations with ProcMon; demos all tools successfully. top-level statements

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Understanding .NET assemblies
  3. 3:51JIT and tiered compilation
  4. 8:21Compiling C# with Roslyn
  5. 13:19Framework vs self-contained apps
  6. 18:15Exploring DLL with dotPeek
  7. 23:51Decompiling IL to C#
  8. 27:02Inspecting DLL bytes
  9. 33:17Debugging with WinDbg
  10. 41:22Monitoring with ProcMon
  11. 47:03Creating projects
  12. 50:13Building with MSBuild
  13. 57:10Runtime launch with apphost
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.