C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Rajesh Gami(8)
Sardar Mudassar Ali Khan (4)
Rasul Huseynov(4)
Ananya Desai(3)
Kaveendra Dhilhan(3)
Aman Gupta(3)
Sanjay Kumar(3)
Saurav Kumar(2)
Darshan Adakane(2)
Devesh Omar(2)
George (2)
Jaimin Shethiya(2)
Vijay Yadav(2)
Muhammad Asif(2)
Jitendra Mesavaniya(2)
Sarthak Varshney(2)
Ajay Kumar(2)
Ayush Gupta(2)
Najath Risni(2)
Ng Cheehou(2)
Ashish Bhatnagar(2)
Tuhin Paul(1)
Kesavan V(1)
Riya Patel(1)
Nidhi Sharma(1)
Aarav Patel(1)
Niharika Gupta(1)
Pradeep Prajapati(1)
Nabaraj Ghimire(1)
Rohit Gupta(1)
Ajay Narkhedkar(1)
Oguzhan Agir(1)
Mominul Islam(1)
Ck Nitin(1)
Kripanshu Kumar(1)
Micheal Xavier A (1)
Amit Mohanty(1)
John Godel(1)
Shubham Sidnale(1)
Vishal Yelve(1)
Waqas Anwar(1)
Dashrath Hapani(1)
Kirtesh Shah(1)
Sourabh G(1)
Rahul Sharma(1)
Uday Dodiya(1)
Velladurai (1)
Vipul Kumar(1)
Nikunj Satasiya(1)
Mohamed Azarudeen Z(1)
Chetan Sanghani(1)
Vikas Singh(1)
Gunasekaran Palani(1)
Rishabh Bhardwaj(1)
Chethan N(1)
Md Sarfaraj(1)
Prasad (1)
Rajashekar Syereddy(1)
Anandu G Nath(1)
Vinoth Xavier(1)
Satyaprakash Samantaray(1)
Tahir Ansari(1)
Rahul Singh(1)
Ravikant Sahu(1)
Aravind Govindaraj(1)
Resources
No resource found
Enterprise Singleton: Thread-Safe, Async-Aware Resource Sharing in Multi-Agent LangGraph
Jul 14, 2026.
By implementing an async-aware, thread-safe singleton pattern, we transform our multi-agent systems from resource-wasting prototypes into efficient, enterprise-grade platforms capable of handling concurrent load while minimizing infrastructure overhead.
Identifying and Using OnPremisesImmutableId from Azure AD Connect Synchronization Errors
Jul 07, 2026.
Resolve Azure AD Connect 'Duplicate Attribute' errors by using the OnPremisesImmutableId directly from sync errors, simplifying hybrid identity management.
Understanding CRDTs: Conflict-Free Data Synchronization for Distributed Applications
Jul 06, 2026.
Explore CRDTs: Conflict-Free Replicated Data Types for seamless, conflict-free data sync in distributed apps, ensuring eventual consistency.
Understanding CRDTs for Conflict-Free Distributed Applications
Jul 03, 2026.
Explore CRDTs for conflict-free distributed apps. Learn how they enable independent updates & eventual consistency for collaborative, offline, & distributed systems.
How to Implement Thread-Safe Singleton Design Pattern with Lazy
Apr 08, 2026.
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.
How to Fix DeletingCloudOnlyObjectsNotAllowed in Microsoft Entra
Mar 31, 2026.
Fix "DeletiCloudOnlyObjectsNotAllowed" after moving disabled accounts to an unsynced OU in Entra ID. Learn how to resolve sync errors and restore proper hybrid identity.
Design Patterns Simplified: Mastering Singletons in C#
Feb 06, 2026.
Master the Singleton design pattern in C#! Learn how to create a single instance class for efficient resource management, thread safety, and global access in .NET applications.
Why Does Data Sync Fail Between an Application and a Third-Party Service?
Feb 06, 2026.
Learn why data sync fails between applications and third-party services. Discover solutions for API failures, authentication issues, schema mismatches, and more!
MongoDB Change Streams Explained with Use Cases
Feb 04, 2026.
Discover MongoDB Change Streams: a powerful tool for real-time data updates. Learn how to build responsive apps with notifications, live dashboards, and more!
Why Does Real-Time Data Not Update Correctly on Dashboards?
Jan 29, 2026.
Troubleshoot dashboard update issues! Discover why real-time data lags, from slow pipelines to caching. Restore trust with timely, accurate insights.
Multi-Org Salesforce Integration Patterns (Real-World Guide)
Jan 21, 2026.
Master Salesforce multi-org integration! Explore patterns like central hubs, peer-to-peer sync, event-driven architecture, and external systems of record. Avoid common pitfalls & build scalable solutions.
Why Does Time Drift Occur Between Containers Running on the Same Host?
Jan 21, 2026.
Uncover why containers on the same host experience time drift, leading to log inconsistencies and scheduling issues. Learn to mitigate these problems for reliable systems.
Singleton Design Pattern in C# – Simple and Easy Explanation 🔒
Jan 17, 2026.
Master the Singleton pattern in C#! This guide offers a simple, thread-safe implementation, real-world examples, and key rules for efficient coding. Ensure single instance!
Singleton Pattern in .NET
Jan 05, 2026.
Explore the Singleton design pattern in .NET! Learn its purpose, when to use (and avoid) it, and discover 7 practical C# implementations with code examples. Master single instance management!
3 Types of Service Lifetimes in .NET You Must Know
Jan 03, 2026.
Unlock .NET efficiency! Master Transient, Scoped, & Singleton service lifetimes for optimal memory use, thread safety, & performance. Avoid common pitfalls!
What LangSmith Fetch Is and How It Automates Dataset Retrieval for Evaluations
Dec 11, 2025.
Learn what LangSmith Fetch does, how it streamlines dataset ingestion for LLM evaluation, and how to use it in LangChain workflows. Includes architecture diagrams, step-by-step setup, code examples, and best-practice recommendations.
Multi-Grid Synchronization with Shared Paging and Filters in Angular
Dec 03, 2025.
Synchronize Angular grids with shared paging and filters for scalable enterprise apps. Learn architecture, state management, and best practices for consistent data.
Mastering Dependency Injection in ASP.NET Core – Complete Beginner to Advanced Guide
Nov 23, 2025.
This article provides a complete and detailed understanding of Dependency Injection (DI) in ASP.NET Core, covering everything from basic concepts to advanced topics such as IoC containers, service lifetimes, middleware injection, captive dependency issues, and multiple service implementations. With real-world examples, clean architecture explanations, and interview-oriented insights, this guide helps developers build scalable, maintainable, and testable applications while improving their professional knowledge and .NET development skills.
High-Scale File Sync Service (Detect Changes, Push Deltas, Track Versions)
Nov 24, 2025.
Build a high-scale file sync service with delta transfers, versioning, and conflict resolution. Architecture uses Angular & .NET for efficient sync across devices.
High-Scale File Sync Service (Detecting Changes, Pushing Deltas, and Tracking Versions)
Nov 21, 2025.
Build a scalable file sync service with Angular and .NET. Detect changes, push deltas, track versions, and resolve conflicts efficiently. Enterprise-ready!
Implementing Change Data Capture (CDC) and Syncing Two Databases (SQL Server + .NET)
Nov 17, 2025.
Implement real-time data synchronization between SQL Server databases using Change Data Capture (CDC) and .NET. Includes code, architecture, and best practices.
Building a Custom Merge Replication for Selected Tables Only (SQL Server + .NET)
Nov 17, 2025.
Build a custom merge replication system in SQL Server with .NET for selective table syncing, conflict resolution, and incremental updates. Control, version, and monitor your data!
Data Synchronization Between Cloud and On-Prem SQL Databases
Nov 12, 2025.
Synchronize on-prem SQL with cloud databases (Azure SQL, RDS). Explore strategies: SQL Replication, Azure Data Sync, custom APIs. Ensure data consistency!
Implementing Real-Time Data Synchronization with Firestore and Angular Signals
Nov 12, 2025.
Build real-time Angular apps with Firestore & Signals! Learn to sync data seamlessly, eliminating manual subscriptions for reactive, data-driven UIs. Future-proof your development!
The ASP.NET Core Dependency Injection System (with .NET 9 Patterns & Pitfalls)
Nov 03, 2025.
Practical guide to ASP.NET Core DI: lifetimes, constructor vs. property injection, Options, TryAdd, avoiding captive deps, IServiceScopeFactory, IAsyncDisposable, and .NET 9 AOT.
Offline + Sync System: Angular IndexedDB + ASP.NET Core Sync API
Nov 04, 2025.
Build offline-first Angular apps with IndexedDB and ASP.NET Core Sync API! Enable seamless data access and sync, ensuring reliability even without internet.
ASP.NET Core Design Patterns Revolution: Repository, Singleton & Clean Architecture (Part-18 of 40)
Oct 20, 2025.
Unlock the power of design patterns in ASP.NET Core! Master Repository, Singleton, Factory, Strategy, and more to build scalable, maintainable, and testable applications. Learn through real-world examples, understand performance considerations, and avoid common anti-patterns. Elevate your .NET 8 development skills and create robust, clean architecture.
Static Class vs Singleton Pattern 🔄
Oct 14, 2025.
Explore the nuances between Static Classes and the Singleton Pattern in C#. This article provides a detailed comparison, covering memory usage, performance, inheritance, thread safety, testing, and practical use cases. Learn when to choose a static class for utility functions or a singleton for managing shared resources. Discover best practices and common pitfalls to avoid in your C# development.
How to Add or Change the Owner of a Synchronized Microsoft 365 Group
Aug 24, 2025.
Learn how to add or change the owner of a synchronized Microsoft 365 group by modifying the 'Managed By' attribute in Active Directory and syncing with Entra Connect.
What are Common Design Patterns in Node.js (Module, Singleton, Factory, etc.)
Aug 18, 2025.
This article explains the most commonly used design patterns in Node.js, such as Module, Singleton, Factory, and others. Each concept is explained in simple words with code examples to help you understand where and how to use them.
Mastering Dependency Injection in .NET Core: A Complete Beginner-to-Advanced Guide
Jul 28, 2025.
Dependency Injection (DI) is a cornerstone of modern software architecture in .NET Core and beyond. It promotes loose coupling, testability, and maintainability, making applications easier to build and scale.
Service Lifetimes in ASP.NET Core: Transient vs Scoped vs Singleton
Jun 25, 2025.
Learn the differences between Transient, Scoped, and Singleton service lifetimes in ASP.NET Core with real-world examples
What is Singleton Design Pattern With Real Time Example in C#
Jun 12, 2025.
Learn how the Singleton Design Pattern works in C# with a real-time example. Understand its use in controlling object creation, ensuring only one instance exists for global access and efficiency.
Singleton Pattern in C# 14: A Deep Dive with a Real-World Example
Apr 21, 2025.
In software architecture, there are scenarios where only a single instance of a class should exist throughout the lifetime of an application.
C# Singleton Pattern: One Instance to Rule Them All
Apr 16, 2025.
The Singleton Design Pattern in C# ensures only one instance of a class exists and provides a global access point. It's ideal for managing shared resources like logging, configuration, or database connections.
Decorator Design Pattern ( Singleton Design Pattern)
Mar 28, 2025.
This article explains the Decorator Design Pattern in C#, demonstrating how to dynamically add functionalities to objects without modifying their structure. It includes real-world examples, implementation steps, and code samples.
Real-Time Data and NCache: Keeping Your Data Fast and Fresh
Jan 23, 2025.
Learn what is real-time data and what are its characteristics. Learn how modern distributed caching solutions such as NCache can help us in building and managing modern real-time applications.
RxJS Subjects in Angular
Dec 24, 2024.
RxJS Subjects in Angular act as both Observable and Observer, enabling real-time data sharing. Multiple subscriptions and Angular services allow seamless communication between components using the next() and subscribe() methods.
Understanding Keyed Services in .NET 8
Nov 13, 2024.
Keyed Services in .NET 8 enhance dependency injection by allowing multiple implementations of an interface to be registered with unique keys. This enables flexible dependency resolution, ideal for tailored service instances in applications.
Integrate MySQL and Snowflake for Real-Time Insights
Nov 08, 2024.
This guide covers migrating data from MySQL to Snowflake, highlighting two methods: using Estuary Flow for real-time data sync with minimal setup, and a manual CSV export/import for smaller datasets or one-time transfers.
Why In ASP.NET Core logging is often implemented as a singleton
Oct 20, 2024.
In ASP.NET Core, logging is often implemented as a singleton to ensure efficient resource usage, centralized management, and thread-safe logging across the application.
How to Use Scoped Service from Singelton Service in .NET Core
Sep 30, 2024.
This guide explains how to resolve scoped services from a singleton service, highlighting best practices to avoid common pitfalls and ensure proper resource management in your application.
Setting Up Kafka In Local using Docker
Sep 28, 2024.
Apache Kafka is a distributed streaming platform used to build real-time data pipelines and applications. It relies on Zookeeper for managing metadata and broker health.
Get to know about Cross Tenant Synchronization
Sep 18, 2024.
In this article, we will learn that tenant Synchronization enables seamless identity and data synchronization between multiple tenants, often used in cloud environments like Azure AD.
Singleton Pattern: Ensuring a Single Instance in .NET Core
Sep 09, 2024.
In this article, we learn about Singleton Pattern: Ensuring a Single Instance in .NET Core. The Singleton Pattern ensures a class has only one instance, providing global access. It's commonly used for managing shared resources like logging, configurations, or database connections, ensuring efficient resource usage.
Design Pattern (3), Singleton
Sep 05, 2024.
This article will discuss the Singleton pattern.
Understanding HttpClient Best Practice
Sep 02, 2024.
Creating a new HttpClient instance frequently can lead to performance issues like socket exhaustion due to open sockets lingering in the TIME_WAIT state. Instead, reuse a singleton HttpClient instance to avoid these issues.
Integrating AngularJS with jQuery Select2 for Dropdown Changes
Sep 02, 2024.
Integrating AngularJS with jQuery Select2 enhances dropdown menus by combining AngularJS’s data binding with Select2’s advanced features. This setup involves initializing Select2 with AngularJS, handling dropdown changes, and synchronizing Angular models.
Advanced Dependency Injection in .NET Core
Aug 27, 2024.
This guide explores advanced Dependency Injection (DI) in .NET Core through an e-commerce application example. It covers custom service lifetimes, scopes, and managing complex dependency graphs, demonstrating how to build scalable, maintainable, and loosely coupled applications using DI techniques.
Singleton Pattern Caching in .NET C#
Aug 26, 2024.
Learn how to implement caching using this pattern to enhance memory management, ensure thread safety, and optimize performance in your applications.
Difference between lock(this) and lock(privateObj) in C#
Aug 22, 2024.
In multi-threaded C# programming, the lock statement ensures that critical code sections are accessed by only one thread at a time. While lock(this) locks on the current instance, it can expose your object to external locking, leading to potential deadlocks.
Implementing Thread-Safe Dynamic Arrays
Jul 31, 2024.
Implementing thread-safe, dynamically resizable arrays in C ensures data integrity in multi-threaded applications. Utilize mutex locks for synchronization, condition variables for state management, and resize arrays dynamically to handle concurrent access efficiently.
Intra-process vs Inter-process Synchronization in C#
Jul 31, 2024.
In C#, intra-process synchronization involves managing concurrency within a single process using tools like lock, Mutex, and Semaphore. Inter-process synchronization deals with coordination between separate processes using similar mechanisms.
Singleton Design Pattern in .NET Core
Jul 26, 2024.
The Singleton Design Pattern ensures a class has only one instance and provides a global access point to it. In .NET Core, this involves a private constructor, a static instance variable, and a static method to access the instance. It’s useful for managing shared resources like database connections.
Understanding and Using Scope in .NET Core
Jul 26, 2024.
In .NET Core, dependency injection (DI) manages service lifetimes with three scopes: Transient (new instance per request), Scoped (one instance per request), and Singleton (one instance shared across all requests). Proper use of these scopes optimizes resource management and application performance.
Singleton Design Pattern: Detailed Explanation and Practical Examples
Jul 24, 2024.
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.
After Business Rules in ServiceNow: Scenarios and Best Practices
Jul 22, 2024.
After Business Rules in ServiceNow execute after a database operation, enabling actions that depend on the successful completion of the initial operation. Common scenarios include audit logging, triggering notifications, data synchronization, and cascade updates.
Dependency Injection in ASP.NET Core
Jul 16, 2024.
Dependency Injection (DI) in ASP.NET Core enhances modularity, testability, and maintainability by providing class dependencies externally via the built-in Inversion of Control (IoC) container. Configure services in Startup.cs, utilize constructor injection in controllers, and choose appropriate lifetimes (Transient, Scoped, Singleton).
Angular vs. AngularJS: Key Differences and Syntax Changes
Jul 15, 2024.
AngularJS revolutionized web development with two-way data binding and a modular approach. Angular (2+) addresses performance issues, offering a modern framework with enhanced features like robust dependency injection, improved data binding, and a powerful CLI.
Understanding Multitasking and Multithreading in ASP.NET and .NET Core
Jul 12, 2024.
Learn about multitasking and multithreading in ASP.NET and .NET Core. Discover how async/await keywords enhance responsiveness, manage concurrent operations efficiently, and handle IO-bound tasks. Explore real-world examples and differences between these techniques for optimized application performance.
Injecting Dependencies of Different Lifetimes in .NET Applications
Jul 09, 2024.
Understanding dependency lifetimes in .NET is crucial for effective dependency injection. Singleton instances persist throughout the application's lifespan, scoped instances are tied to specific requests, and transient instances are short-lived.
Services Lifetime Management in .NET Console Applications
Jul 08, 2024.
Learn efficient service lifetime management in .NET Console Applications using Dependency Injection (DI) with Microsoft.Extensions.DependencyInjection. Explore scoped, transient, and singleton lifetimes for optimized resource utilization and application performance.
Design Pattern (3-1), Differences between Singleton & Static Class
Jul 02, 2024.
This article will discuss the Differences between Singleton and Static Class. This series explores Design Patterns, starting with MVC. The article discusses differences between Singleton and Static classes, highlighting their roles in maintaining global state in an application.
Benefits of Locking and Unlocking Objects in C#
Jul 02, 2024.
Object locking in C# ensures controlled access to shared resources in multithreaded environments, preventing race conditions and maintaining data integrity. By using the lock statement, you can synchronize threads, ensuring thread safety and avoiding deadlocks.
Managing Concurrent Access with Semaphores in C# .NET
Jun 23, 2024.
Concurrency control is crucial in multithreaded programming to prevent resource contention. In C#, the Semaphore class manages access to shared resources, allowing a defined number of threads to proceed simultaneously.
Getting Started with ZooKeeper: A Beginner's Guide
Jun 20, 2024.
Learn the basics of Apache ZooKeeper, a distributed coordination service, including its architecture, installation, usage, and practical examples.
Design Patterns with C# Examples
Jun 19, 2024.
This article explains design patterns, providing standard solutions for software design problems. It covers Creational, Structural, and Behavioral patterns with C# examples, including Singleton, Factory Method, Adapter, Composite, Observer, and Strategy patterns, enhancing code flexibility and maintainability.
Introduction to Apache ZooKeeper
Jun 18, 2024.
Apache ZooKeeper is a centralized service for managing configuration, synchronization, and naming in distributed systems.
Microsoft Power Automate for Workflow Efficiency
Jun 11, 2024.
Microsoft Power Automate streamlines workflows between apps and services. Create automated processes effortlessly with templates and triggers for increased productivity and efficiency in your digital transformation journey.
Mastering Asynchronous Programming in C# Async and Await Patterns
Jun 01, 2024.
Master asynchronous programming in C# with the async and await patterns. Learn how to write non-blocking code, improve application performance, and handle concurrency. Understand Task-based asynchrony, exception handling, and preventing deadlocks, enabling efficient and responsive applications.
Understanding the Singleton Pattern in C#
May 27, 2024.
The Singleton pattern is one of the most commonly used design patterns in software engineering. It falls under the category of creational patterns and ensures that a class has only one instance while providing a global point of access to that instance.
Understanding Thread Synchronization in Concurrent Programming
May 18, 2024.
Thread synchronization in C# ensures safe, correct access to shared resources in concurrent programming, preventing race conditions, data corruption, deadlocks, and livelocks through various mechanisms like locks, monitors, and semaphores.
Under The Hood Of Thread Synchronization With LOCK
May 15, 2024.
The LOCK keyword is the most popular mutual-exclusive thread synchronization construct. The LOCK statement in C# is crucial for thread synchronization, preventing race conditions by restricting access to shared resources. Under the hood, it translates to the Monitor class, enhancing code efficiency and reliability.
Monitor Class as Hybrid Synchronization Construct in .NET
May 14, 2024.
The Monitor class is hybrid thread synchronization construct. So, it provides a mutual-exclusive lock supporting spinning, thread ownership, and recursion.
Introduction to Monitor Class in C#
May 13, 2024.
The Monitor class is built on dotNET’s FCL (Framework Class Library) infrastructure. In general, it provides to achieve thread safety.
Singleton Design Pattern in .NET C#
May 02, 2024.
A design approach known as the singleton pattern limits a class's instantiation to a single object while still allowing access to the object. When precisely one item is required to coordinate actions throughout the system, this is helpful.
Singleton vs. Static Class in C# - Choosing the Right Approach
Apr 17, 2024.
Singleton and Static classes can only have one instance available in memory, and both classes can be used to maintain the global state of an application, however, there are many differences between them. In this article, I explain what their differences are.
Change Data Capture - CDC with SQL server
Mar 21, 2024.
Learn how CDC facilitates seamless data integration, enables efficient data replication, and ensures accurate data synchronization, providing businesses with timely insights and streamlined operations.
Singleton Design Pattern In Flutter
Mar 20, 2024.
Learn how and when to use Singletons, implement them effectively, and explore their advantages and limitations. This article also includes a sample implementation using the shared_preferences package to manage user preferences.
Effective Communication Between Executable Files Using Shared Memory
Mar 18, 2024.
In a WPF (Windows Presentation Foundation) application, inter-process connectivity typically involves communication between different components or modules within the same application or between separate WPF applications running on the same system or across different systems.
Enable Outlook for D365 Trial Account
Mar 14, 2024.
Enabling Outlook for your D365 trial account seamlessly integrates email functionalities with Microsoft Dynamics, streamlining communication and data management. Configure integration settings to synchronize emails effortlessly, maximizing productivity and efficiency during your trial period.
How to Do Zone Transfer in Windows Server
Mar 01, 2024.
Zone transfer is a crucial process for synchronizing DNS zone data across multiple servers, ensuring all DNS servers responsible for a domain remain updated with the latest information. By following the step-by-step instructions outlined in the article, users can configure zone transfer between primary and secondary DNS servers effectively.
Better Implementation Of Singleton Pattern in .NET
Feb 27, 2024.
This article explains the mistakes made in writing Singleton Pattern in the multithreaded environment create a bug and how to bring a solution to it.
How to Do Work Folder in Windows Server?
Feb 19, 2024.
Work Folders in Windows Server 2019 enable seamless synchronization of user files between devices, ensuring access to up-to-date data. Administrators can set up and manage Work Folders via Group Policy and Active Directory.
Dynamically Alter Theme Across All Screens Within the Canvas App
Feb 13, 2024.
Learn how to seamlessly adjust the theme across all screens within your Canvas app dynamically. Explore methods for real-time theme modification, ensuring consistent and adaptive UI theming for a cohesive user experience.
Design Patterns in C#
Dec 27, 2023.
Design Patterns in the object-oriented world are a reusable solution to common software design problems that repeatedly occur in real-world application development. It is a template or description of how to solve problems that can be used in many situations.
.NET Core: Detail of Lifetime Management
Nov 21, 2023.
In .NET Core, lifetime management refers to how objects are created, used, and eventually disposed of within an application. It ensures efficient resource utilization and prevents memory leaks.
Design Patterns and Steps to Implement Singleton Class in C#
Nov 13, 2023.
Design patterns is the important features of object oriented programming. We need to ensure that only one object of a particular class is instantiated in Singleton design pattern in C#.
Singleton Design Pattern: Eager And Lazy Initialization With Code Example
Oct 09, 2023.
Explaining the differences between eager and lazy singleton
Problem-Solving with the Singleton Design Pattern: A Before-and-After Code Analysis
Oct 06, 2023.
Explaining Singleton Design Pattern with C# code example
Building a Robust ASP.NET Core Web API with Singleton Design Pattern and Three-Tier Architecture
Oct 04, 2023.
This example provides a basic structure for a Three-Tier Architecture in an ASP.NET Core Web API, implementing a Singleton Design Pattern for the Data Access Layer. Remember to adjust the code based on your specific requirements and consider using dependency injection for better testability and maintainability.
A Deep Dive into Static Classes in C#
Sep 25, 2023.
This article, "Exploring Static Classes in C#," provides an in-depth exploration of the concept and practical applications of static classes in the C# programming language. It elucidates the fundamental characteristics of static classes, their unique features, and how they differ from regular classes. Readers will gain a comprehensive understanding of how static classes are used to encapsulate static members, such as methods, properties, and constants, within a C# application.
The Race Condition in Thread Synchronization
Sep 24, 2023.
In my Last Article “Thread synchronization in Java” we have discussed the concept of monitor. A monitor can be compared to a small box that can only carry one thread at once.
Static and Singleton Classes in C#
Sep 23, 2023.
Object-Oriented Programming (OOP) in C# is a way to organize code neatly. There are two types of classes: static and singleton. Static classes have functions that you can use without creating an object. They're great for simple tasks, but can cause issues if used too much. Singleton classes ensure there's only one instance of a class. They're useful for managing shared resources. Both have pros and cons. Static classes are simple and fast, but may create problems with too much shared data. Singleton classes are good for controlling resources but are more complex. Choose the one that fits your project's needs.
Thread Synchronization in Java
Sep 20, 2023.
When using two or more threads in a program, it may be so happening that more than one thread wants to access a resource at the same time. For example, one thread might try to read data from a file while the other tries to change data in the same file.
Dependency Injection And Service Lifetime in ASP.NET Core
Sep 18, 2023.
Dependency injection And Service Lifetime in ASP.NET Core With Realtime example
Concurrency in Kotlin
Aug 17, 2023.
This article serves as a valuable source of information and contributes to knowledge dissemination about performing multi-tasking using Kotlin concurrency.
Design patterns and its types
Jun 28, 2023.
Design patterns for well-structured, maintainable software. Creational, structural, and behavioral patterns are discussed with real-life examples.
HttpContextAccessor in Asp.NET Core Web API
May 27, 2023.
In ASP.NET Core Web API, the HttpContextAccessor class is a component that provides access to the current HTTP request and response context. It allows you to access various aspects of the HTTP request and response, such as headers, cookies, query parameters, and user claims.
Singleton Design Pattern Evolution and implementation C#
May 03, 2023.
Learn how to implement the Singleton Pattern in C# and its evolution through four different approaches.