SKILL

dotnet-patterns

C#と.NET言語固有のパターン、規約、依存性注入、async/await、およびロバストで保守可能な.NETアプリケーション構築のためのベストプラクティス。

Original · translation did not pass checks

Target: Target not categorized. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • .NET Development Patterns
  • When to Activate
  • Core Principles
  • 1. Prefer Immutability
  • 2. Explicit Over Implicit
  • 3. Depend on Abstractions
  • Async/Await Patterns
  • Proper Async Usage

Idiomatic C# and .NET patterns for building robust, performant, and maintainable applications. Writing new C# code Reviewing C# code Refactoring existing .NET applications Designing service architectures with ASP.NET Core Use records and init-only properties for data models. Mutability should be an explicit, justified choice. Be clear about nullability, access modifiers, and intent. Use interfaces for service boundaries. Register via DI container. Bind configuration sections to strongly-typed objects. Return explicit success/failure instead of throwing for expected failures. | Anti-Pattern | Fix | |---|---| | async void methods | Return Task (except event handlers) | | .Result or .Wait() | Use await | | catch (Exception) { } | Handle or rethrow with context | | new Service() in constructors | Use constructor injection | | public fields | Use properties with appropriate accessors | | dynamic in business logic | Use generics or explicit types | | Mutable static state | Use DI scoping or ConcurrentDictionary | | string.Format in loops | Use StringBuilder or interpolated string handlers |

Source repository
affaan-m/ECC
Source file
docs/ja-JP/skills/dotnet-patterns/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.170Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.