Csharp Factory Patterns

Use factory patterns for object creation flexibility

LgrappaG af49e7f 924 B Updated

File contents

Csharp Factory Patterns

Use factory patterns for object creation flexibility

Risk Level

LOW

Core Rules

  • Keep factories simple
  • document logic
  • Test thoroughly before deploying

Response Pattern

When Using This Skill

  1. Design factories
  2. Validate the implementation
  3. Test edge cases and error conditions
  4. Ensure performance meets requirements

Usage Contexts

  • Object creation
  • type abstraction

What NOT to Do

  • Complex factories
  • hidden logic
  • Deploy without testing

Key Requirements

  • Understand the use cases before application
  • Follow the documented response pattern
  • Validate results in the target environment
  • Monitor for performance impact

Further Learning

Review related skills and documentation for deeper understanding of related systems and best practices.

LgrappaG/Workflows-Agents/tree/main/skills/csharp-factory-patterns commit af49e7feca

Frequently asked questions

npx skillmds@latest add lgrappag/csharp-factory-patterns