Posts Tagged: csharp

Discover tips, tricks, and best practices for programming in C#, a popular and powerful programming language for building Windows and web applications.

Tag RSS Feed

2023
  • Using The Factory Design Pattern in .NET May 9

    Discover how to use the Factory design pattern in .NET applications to create objects in a flexible and maintainable way. It provides examples of real-world scenarios where the pattern could be used to improve code quality, and demonstrates how to implement the Factory pattern in C# code.

  • Using The Decorator Design Pattern in .NET May 8

    Discover how to use the Decorator design pattern in C#/.NET to add new behaviours to an object dynamically without changing its underlying structure. See how you can make your code more maintainable and extensible, and see step-by-step instructions for implementing it in C#. Find out how to use the Decorator pattern with dependency injection.

  • Using The Singleton Design Pattern in .NET May 7

    Discover how to use the Singleton design pattern in C#/.NET to create a single instance of an object that is globally accessible throughout your application. Learn about the benefits and drawbacks of the Singleton pattern, how to implement it using Lazy<T> for thread-safety, and its role in modern .NET development and Dependency Injection.

  • Using the Builder Design Pattern in .NET Mar 14

    Discover how to use the Builder pattern in C#/.NET to create more maintainable and flexible code. Learn implementation tips and answers to FAQs in this comprehensive guide. Improve your .NET development skills and create reusable code today.

2022
2020
2017
2014
2013
2012