csharp-dotnet

Provide C# and .NET development patterns with async/await, LINQ, and dependency injection.

20|5|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/miles990/claude-software-skills --skill csharp-dotnet-miles990
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-dotnet
Source: https://github.com/miles990/claude-software-skills/tree/main/programming-languages/csharp-dotnet
Command: npx skills add https://github.com/miles990/claude-software-skills --skill csharp-dotnet-miles990

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

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.

Frequently Asked Questions about csharp-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle errors in C# without throwing exceptions?

C# error handling can use Result types and custom exceptions to manage failures gracefully. This approach encapsulates error states within return values, allowing robust enterprise application logic without relying solely on traditional exception throwing.

How do I use LINQ to group data in an ASP.NET Core application?

LINQ provides query and method syntax for powerful data manipulation, including grouping, joining, and aggregation. You can use these patterns in an ASP.NET Core application to efficiently process and organize collections of data.

What is the best way to implement dependency injection in .NET?

Dependency injection in .NET is best implemented using Microsoft.Extensions.DependencyInjection for service registration and constructor injection. This pattern ensures maintainable and efficient application architecture.

How does async programming with IAsyncEnumerable work in C#?

Async programming in C# uses async/await, Task, ValueTask, and IAsyncEnumerable for efficient asynchronous operations. IAsyncEnumerable enables asynchronous iteration over streams of data, optimizing performance for continuous data flows.

When should I use modern C# features like records and pattern matching?

Modern C# features like records, pattern matching, nullable reference types, and init-only properties are used to write more efficient and maintainable applications. Records provide immutable data objects, while pattern matching simplifies complex conditional logic.

Does this C# and .NET Skill cover enterprise application patterns?

This Skill covers enterprise application patterns including robust error management, dependency injection, and asynchronous programming. It provides code examples and guidance necessary for building scalable .NET applications.