Worked examples
These examples are teaching aids grounded in supported behavior. Exact locations, variable names, and aggregate metrics depend on the analyzed source and configuration.
- Collection and LINQ costs covers lookup, materialization, ordering, and collection choice.
- Recursion and cognitive complexity separates asymptotic growth from comprehension metrics.
- Before and after a refactoring explains why removing a diagnostic is not the same as proving every performance property.
- Snapshot comparison demonstrates deterministic regression review.
For runnable repository code, also see the samples/ComplexityAnalysis.Sample project.