.NET coding patterns is a compact collection of practical implementation patterns for modern .NET development. Its examples focus on reusable techniques that arise when working with dependency injection, generics, configuration, services, and asynchronous networking. One section demonstrates using generic types as factories for resolving or creating services from an IServiceProvider. Other patterns cover lazy service initialization, exposing one implementation through multiple interfaces, caching singleton instances in generic types, and resolving dependencies with IOptions. The repository also includes a modern asynchronous socket server built with task-based accept, read, and write APIs. Examples are presented as focused Markdown explanations with C# code rather than as a single executable application. The project is intended as a reference for developers interested in concise, idiomatic .NET implementation techniques.

Features

  • Generic types used as service factories
  • Lazy dependency initialization patterns
  • Multiple-interface service implementations
  • Generic singleton caching techniques
  • IServiceProvider and IOptions integration
  • Task-based asynchronous socket server

Project Samples

Project Activity

See All Activity >

Categories

Libraries

Follow .NET coding patterns

.NET coding patterns Web Site

Other Useful Business Software
Veeam Data Platform v13.1 - Get Your Free Trial Icon
Veeam Data Platform v13.1 - Get Your Free Trial

Secure by design, portable by default. Recover clean, fast, anywhere. Start a free trial.

Try Veeam Data Platform today. Experience the unified platform that's secure by design, portable by default, and proven to recover clean, fast, and anywhere.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of .NET coding patterns!

Additional Project Details

Registered

2026-08-07