Systematically refactors C# code to improve maintainability, readability, and adherence to best practices.
| SRP | Extract class, Split responsibilities | | OCP | Introduce Strategy/Template Method pattern | | LSP | Fix inheritance hierarchy, Use composition | | ISP | Split interface into smaller ones | | DIP | Extract interface, Inject dependencies |
| Complex object creation | Builder, Factory Method | | Multiple conditionals on type | Strategy, State | | Global state access | Singleton (cautiously), DI | | Complex subsystem | Facade | | Tree/composite structures | Composite | | Adding features dynamically | Decorator | | Request handling chain | Chain of Responsibility |
Навыки рефакторинга кода C#. Применяет принципы SOLID, извлекает методы/классы, знакомит с шаблонами проектирования и модернизирует синтаксис. Используйте при улучшении удобства сопровождения кода, устранении недостатков кода или модернизации устаревшего кода C#. Источник: jeongheonk/c-sharp-custom-marketplace.