9 posts about Lazy Initialization by 9 contributors.
Know Lazy Initialization? Share what you know with developers who are learning it.
Master thread-safe Singleton implementation in C# using Lazy! Learn how to create a single instance class in multi-threaded apps efficiently and avoid common pitfalls. Boost performance with lazy initialization.
Delve deeper into React's useState hook! This guide explores advanced patterns like lazy initialization, object state management (spreading!), and avoiding common pitfalls such as incorrect updates and using useState in loops. Understand how React optimizes state updates and ensures efficient re-renders. Master useState for robust and performant React components. Learn how to initialize state only once and the importance of using functional updates.
The Singleton Design Pattern ensures a class has only one instance and provides global access to it. Implementations include Basic Singleton, Thread-Safe Singleton with synchronization, Double-Checked Locking, and Bill Pugh Singleton using a static inner class.
Learn about lazy initialization in C# .NET—a vital design pattern that defers object creation until it's needed, optimizing performance and memory usage. Implementing with Lazy<T> ensures thread safety and responsiveness, ideal for applications needing efficient resource management and scalability.
Explore the Proxy Pattern in C#, a structural design pattern facilitating controlled access to an object. Enhance security, logging, and lazy initialization for efficient client-server communication and remote object access.
The Lazy initialization can be seen in designing the singleton pattern where we can have static readonly property in a nested class that initializes the singleton object in a Lazy way.
In this video, I have talked about optimizing an application by using Lazy Initialization in an application that is using dependency injection and is therefore loosely coupled.Enjoy the video.
In this article, we will learn the basics of Lazy Initialization in .NET and how to implement it in our applications.
Lazy initialization of an object means that its creation is deferred until it is first used.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article