Modern C# Coding Standards
Writes high-performance, functional-style C# code using the latest language features and performance-oriented patterns.
This skill provides Claude with comprehensive expertise in modern .NET development, focusing on C# 12 and beyond. It enforces best practices such as immutability through records, type safety via value objects, and advanced pattern matching to create clean, maintainable codebases. Beyond syntax, it guides the implementation of high-performance patterns using Span<T> and Memory<T>, advocates for composition over inheritance, and promotes robust error handling using Result types. It is an essential companion for developers building modern, scalable, and memory-efficient .NET applications.
主な機能
01Promotes functional error handling with Result types and explicit mapping over reflection
02423 GitHub stars
03Optimizes performance with Span<T>, Memory<T>, and zero-allocation patterns
04Streamlines complex logic using modern pattern matching and switch expressions
05Implements immutability-by-default using C# records and init-only properties
06Enforces strict type safety through readonly record structs and nullable reference types
ユースケース
01Designing high-throughput APIs and performance-critical service layers
02Refactoring legacy .NET code to modern C# 12+ functional-style patterns
03Implementing domain models with strong value semantics and DDD principles