Do you have old code with ArrayList and manual loops? Use this for an instant upgrade.
“Act as a Senior .NET Architect. Rewrite this legacy code using C# 12 and .NET 8 features: [Paste Code].
Use Primary Constructors, File-scoped namespaces, LINQ where appropriate, and ensure it is thread-safe.
Explain each major change made for performance improvement.”
