.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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
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