Correctness review with C#'s own traps: async deadlocks, undisposed IDisposables, double-enumerated LINQ, silenced nullability.
Overview
C# correctness has language-shaped corners: a .Result on a task deadlocks under a synchronization context, an undisposed connection leaks until the pool starves, a LINQ query enumerates twice and doubles its cost, a ! suppresses the nullability warning that was right. This setup runs the twelve-check correctness review with the C# language pack covering exactly those four, under Strict style — every finding flagged, APPROVED or CHANGES REQUIRED — tuned for the hotfix that has to be right the first time.
Workflow
1
Run on the changed class, full file
Async and disposal problems live in the relationships between methods — snippet scope hides them.
2
Trust the async findings
Sync-over-async findings are CRITICAL in request paths even when the code "works" in development.
3
Audit the ! suppressions
Every nullability suppression the review flags was a place someone overruled the compiler — verify they were right.
Why This Works
C#'s worst bugs are language-mechanical — named checks find them where generic review can't
Strict style suits hotfixes: the cost of a missed finding exceeds the cost of reading nits
Correctness focus plus language pack reviews both the logic and the runtime behavior
Best for
.NET services where async correctness is production correctness
Hotfixes reviewed under time pressure
Teams migrating to nullable reference types honestly
Not for
Architecture-level review of the service design — switch focus to Architecture
A persistent C# reviewer persona — that's a System Prompt (SPG) job
Use cases
Reviewing service classes before a hotfix ships
Catching .Result deadlocks before they reach a request thread
Flagging undisposed resources before the pool starves
Tip: Save time by exploring related resources and tools that integrate with this workflow.
Found a bug, have a suggestion, or want to report something confusing? Send a short note.
Cookie preferences
NewPrompt uses optional Google Analytics cookies to understand site usage and improve the tools.
The site works normally if you decline analytics cookies.
Read more in our Cookie Policy.