C# Modernize
Use $csharp-tutor mode=modernize.
Treat all user text after $csharp-modernize as the code, project, or feature-modernization question. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/modernization-map.mdreferences/modern-dotnet-patterns.mdreferences/migration-guidance.mdreferences/nullability-guidance.mdreferences/sourcegen-guidance.mdreferences/versioning-guidance.mdreferences/project-inspection.mdreferences/official-sources.mdreferences/verification-checklist.mdreferences/source-citation-rules.mdreferences/testing-guidance.md
Confirm or infer target C#/.NET version before suggesting newer features. Show before/after code and compatibility tradeoffs.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete modernize decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the modernize concern.
- Minimal example:
public sealed record CustomerDto(int Id, string Name);