What problem does it solve?
This Skill provides comprehensive guidance and code examples for modern C# and .NET development, enabling developers to write more efficient, maintainable, and robust applications.
Core Features & Use Cases
- Modern C# Features: Demonstrates records, pattern matching, nullable reference types, and init-only properties.
- Async Programming: Covers
async/await, Task, ValueTask, IAsyncEnumerable, and channels for efficient asynchronous operations.
- LINQ: Illustrates query and method syntax for powerful data manipulation, including grouping, joining, and aggregation.
- Dependency Injection: Explains service registration and constructor injection patterns using
Microsoft.Extensions.DependencyInjection.
- Error Handling: Shows the use of
Result types, custom exceptions, and middleware for robust error management.
- Use Case: A developer needs to implement a new feature in an ASP.NET Core application that requires fetching data asynchronously, processing it with LINQ, and handling potential errors gracefully. This Skill provides the necessary patterns and examples.
Quick Start
Use the csharp-dotnet skill to generate an example of using LINQ to group users by their email domain.