What problem does it solve?
This Skill addresses the challenge of maintaining consistent, high-quality C# code by providing clear guidelines on modern language features, best practices, and common pitfalls.
Core Features & Use Cases
- Enforce Naming Conventions: Ensures consistent PascalCase, camelCase, and private field naming.
- Promote Immutability: Guides the use of
record types, init-only properties, and immutable collections.
- Leverage Modern C#: Demonstrates effective use of nullable reference types, primary constructors, collection expressions, pattern matching, and raw string literals.
- Optimize LINQ & Async: Provides best practices for writing efficient LINQ queries and robust async/await patterns.
- Improve Readability: Offers guidance on project structure, formatting, and structured logging.
- Use Case: When reviewing a pull request for a new .NET API endpoint, use this Skill to ensure the code adheres to established C# best practices for maintainability and clarity.
Quick Start
Apply the C# coding standards to the provided code snippet.