csharp-patternslisted
Install: claude install-skill Nmor/the-claude-council
> Migrated 2026-06-02 from `~/.claude/rules-library/csharp/` as part of the lazy-rules-loading plan. Phase H will delete the source files.
# csharp-patterns
## Standards Cited
- **ECMA-334** (ecma-international.org/publications-and-standards/standards/ecma-334) — C# Language Specification baseline
- **ECMA-335** Common Language Infrastructure (CLI) — runtime semantics
- **Microsoft .NET 8 Documentation** (learn.microsoft.com/dotnet) — Minimal APIs, IOptions, ILogger, HttpClientFactory, EF Core 8 patterns
- **OWASP ASVS 4.0.3 §5.1** — Input Validation (model binding + DataAnnotations)
- **OWASP ASVS 4.0.3 §8.3** — Sensitive Data Protection (Data Protection API patterns)
- **OWASP Top 10 A01:2021** Broken Access Control — `[Authorize]` + policy-based authorization
- **OWASP Top 10 A03:2021** Injection — parameterised queries (`FromSqlInterpolated` not `FromSqlRaw`)
- **CWE-89** SQL Injection — EF Core LINQ-to-SQL safety contract
- **CWE-352** Cross-Site Request Forgery — `[ValidateAntiForgeryToken]` discipline
- **Semantic Versioning 2.0** (semver.org) — NuGet package versioning
<!-- ============================================================
Section: csharp/coding-style.md
============================================================ -->
---
paths:
- "**/*.cs"
- "**/*.csproj"
- "**/*.xaml"
---
# C# Coding Style
> Extends `common/coding-style.md` with C#-specific conventions.
## Naming Conventions
- Types/namespaces: `PascalCase`
- Public methods/properties