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(6)
Ananya Desai(4)
Gautam Singh(4)
Prabhakar Maurya(4)
Nidhi Sharma(3)
Ayush Gupta(3)
Baibhav Kumar(2)
Jayant Kumar(2)
Vijay Kumari(2)
Vijayaragavan S(2)
Onkar Sharma(2)
Munish A(2)
Kartik Kumar(2)
Prakash Tripathi(2)
Sr Karthiga(2)
Hemant Srivastava(2)
Manish Sharma(2)
Riya Patel(1)
Ketan Sathavara(1)
Niharika Gupta(1)
Saurav Kumar(1)
Prathamesh Dhopare(1)
Darshan Adakane(1)
Mahesh Chand(1)
Abhishek Yadav(1)
Tuhin Paul(1)
Lalit Bansal(1)
Sharp Economy(1)
Anup Hosur(1)
Vipul Kumar(1)
Jitendra Mesavaniya(1)
Sanjay Kumar(1)
Sarthak Varshney(1)
Rasul Huseynov(1)
Divyansh Gupta(1)
Amit Mohanty(1)
Najath Risni(1)
Ajay Kumar(1)
Ravikant Sahu(1)
Venkatasubbarao Polisetty(1)
Rumeel Hussain(1)
Catcher Wong(1)
Vipin Tyagi(1)
Hariharan Krishnan(1)
Mushtaq M A(1)
Thivagar Segar(1)
Dhruvin Shah(1)
Sriram Hariharan(1)
Saravanan Ponnusamy(1)
Waqas Sarwar(1)
Manpreet Singh(1)
Prashant Sharma(1)
Shubham Sharma(1)
Sonu Chaudhary(1)
Jean Paul(1)
Rohit Tomar(1)
Anas Chaudhary(1)
Arunava Bhattacharjee(1)
Abhay Shanker(1)
Abhishek Kumar(1)
Abhishek Kumar Ravi(1)
Abhishek Sur(1)
Sourav Kayal(1)
Neelesh Vishwakarma(1)
Kunal Chowdhury(1)
Jignesh Trivedi(1)
Gaurav Gupta(1)
Aman Singhal(1)
Meet Agarwal(1)
Satya Prakash(1)
Arun Choudhary(1)
Resources
No resource found
Implementing Distributed Locking in .NET with Redis
Jul 31, 2026.
Implement distributed locking in .NET with Redis to prevent duplicate processing in scaled applications. Learn patterns, testing, and best practices.
uv Package Manager Explained: Why Python Developers Are Replacing pip
Jul 16, 2026.
Learn what uv is, how it works, and why Python developers are replacing pip with a faster, modern package manager for dependency and environment management.
Terraform State Management Best Practices for Enterprise Teams
Jul 07, 2026.
Master Terraform state management for enterprises: secure, efficient, and scalable IaC with best practices for teams.
How to Use Entity Tag (ETag) in Power Apps
Jun 25, 2026.
Master ETag in Power Apps for data consistency, preventing conflicts, and optimizing API calls. Essential for reliable data management.
How to Implement Optimistic Concurrency Control in SQL Server?
Apr 21, 2026.
Learn how to implement optimistic concurrency control in SQL Server step by step using RowVersion with examples, conflict handling, and best practices.
How to Handle Concurrency in SQL Server with Locking Mechanisms?
Apr 13, 2026.
Master SQL Server concurrency! Learn locking, row versioning, isolation levels, and performance tuning to prevent deadlocks and ensure data integrity. Optimize your database!
How to Prevent Race Conditions in Distributed Systems?
Mar 03, 2026.
Prevent race conditions in distributed systems! Learn about idempotent operations, distributed locks, optimistic concurrency, and more. Ensure data integrity.
How to Fix Patch Not Working & Duplicate Records in Power Apps
Feb 27, 2026.
Solve Power Apps Patch issues! Prevent duplicate records and silent failures when saving data to SharePoint. Learn to update or create records reliably using LookUp. In real-world Power Apps projects, Patch failures and duplicate SharePoint records are common challenges that impact data integrity and user experience. This article explains the root causes behind these issues and how to handle them effectively. Learn practical techniques like proper form validation, conditional Patch logic, and duplicate checks. A real-world scenario walkthrough makes it easy to implement these solutions in your own apps.
How to Handle Concurrency in Entity Framework Core?
Feb 26, 2026.
Learn how to handle concurrency in Entity Framework Core using optimistic locking, RowVersion, and exception handling. Prevent data loss in multi-user ASP.NET Core apps.
Why Does MySQL Lock Tables During Heavy Traffic?
Feb 13, 2026.
Unlock MySQL performance! Discover why table locking occurs during heavy traffic, impacting speed. Learn to optimize InnoDB, indexing, and transactions for scalability.
How MongoDB Handles Concurrent Users
Feb 06, 2026.
Explore MongoDB's concurrency model: document-level locking, snapshot isolation, and efficient resource management. Learn how it handles thousands of concurrent users.
Handling Concurrent Database Access in .NET: Understanding Locks, Transactions, and Optimistic Concurrency
Jan 16, 2026.
Master .NET database concurrency! Learn to handle simultaneous access with locks, transactions, and optimistic concurrency. Prevent data conflicts and ensure data integrity using practical examples.
Redis Distributed Locks Explained: Safe Patterns, Pitfalls, and Real World Usage
Jan 12, 2026.
A practical, human written guide to Redis distributed locks. Learn when to use Redis locks, how to implement them safely, common locking mistakes in production, and why most Redis locking bugs are self-inflicted.
Prevent Cache Stampede and Thundering Herd Problems in Redis
Dec 29, 2025.
A practical, human written guide to preventing cache stampede and thundering herd issues in Redis. Learn why it happens, how it breaks production systems, and proven strategies teams use to stop it.
How Does Vesting And Lockup Work
Dec 11, 2025.
A complete explanation of vesting, lockup mechanisms, cliff periods, and token release complexities, illustrated with diagrams to help founders and investors understand how these systems protect price and long term value.
Redis in C# — A Technical Overview
Dec 04, 2025.
Explore Redis with C# using StackExchange.Redis for caching, distributed locks, and pub/sub. Enhance .NET application performance and scalability with this in-memory data store.
Real-Time Distributed Lock Indication in UI using Angular
Dec 03, 2025.
Implement real-time distributed lock indication in Angular UIs to prevent data conflicts. Learn architecture, code examples, and production best practices. Enhance collaboration!
How to Reduce Lock Contention in SQL Server Financial Ledger Tables
Dec 02, 2025.
Reduce SQL Server lock contention in financial ledger tables! Implement practical techniques like RCSI, insert-only patterns, and optimized indexing for high-concurrency.
Entity Tag (ETag) in Power Apps – A Complete Guide
Nov 25, 2025.
Unlock the power of Entity Tags (ETags) in Power Apps! This comprehensive guide demystifies Etags, the hidden version identifiers crucial for preventing data conflicts in multi-user environments. Learn how Etags ensure data consistency, enable optimistic concurrency control, and facilitate safe collaborative editing. Discover best practices for handling ETag conflicts and build robust, scalable Power Apps that guarantee data integrity. Master ETag for reliable approval workflows and secure transactional operations.
Designing a Distributed Job Locking System | .NET + Redis + SQL
Nov 21, 2025.
Prevent duplicate job execution in distributed systems! This .NET guide covers Redis & SQL locking, fencing tokens, leases, monitoring, and best practices.
SQL Server Concurrency Framework (Deadlock Retry, Optimistic/Pessimistic Mix)
Nov 20, 2025.
Build a robust SQL Server concurrency framework! Master deadlock retry, optimistic/pessimistic locking, and version tokens for scalable, reliable data handling.
Building a Document Overwriting Protection System (Leases, Locks, Expiry) with Angular + .NET
Nov 19, 2025.
Prevent document overwriting in multi-user apps! Learn to build a robust locking system with Angular and .NET 8, featuring leases, expiry, and conflict resolution.
Mastering Transactions and Concurrency Handling in EF Core 9 for Reliable Data Integrity
Nov 13, 2025.
Master EF Core 9 transactions & concurrency for robust data integrity. Learn savepoints, distributed transactions, and optimistic concurrency control. Build reliable apps!
Locking Down Financial Transaction APIs: Enforcing IP Restrictions on Azure Functions in Real-Time Payment Systems
Oct 16, 2025.
Secure real-time payment systems using Azure Function IP restrictions. This article provides a step-by-step guide to implementing network-level access control, crucial for financial services compliance (PCI DSS, PSD2). Learn how to allow traffic only from trusted sources, preventing unauthorized API calls and bolstering zero-trust security. Includes Azure CLI scripts, testing strategies, and operational best practices for enterprises processing instant SEPA or FedNow payments.
Understanding package.json and package-lock.json in Node.js
Sep 26, 2025.
This article clarifies the roles of package.json and package-lock.json. Learn how package.json defines dependencies and project metadata, while package-lock.json ensures consistent installs across environments by locking exact versions. Understand the impact of deleting package-lock.json and best practices for reliable Node.js development.
What is the purpose of npm, package-lock.json, and the command npm ci?
Aug 14, 2025.
This article explains what npm is, the role of package-lock.json, and the purpose of the npm ci command in Node.js projects, using clear and simple language with examples.
How Layer-2 Scaling Works: Rollups and Beyond
Aug 01, 2025.
Ethereum struggles with high fees and slow speeds. Layer-2 solutions like rollups, especially Optimistic Rollups used by Base, offer faster, cheaper, and scalable blockchain transactions for Web3 growth.
How Layer 2 Solutions are Transforming Decentralized Networks
Jul 11, 2025.
Layer 2 solutions boost blockchain scalability by enabling faster, cheaper, and more efficient transactions. From rollups to zk-proofs, they are key to the future of dApps, DeFi, NFTs, and Web3 adoption.
Base Data Availability and L1 Commitments
Jun 20, 2025.
Explore how Base, built on the OP Stack, ensures secure and scalable transactions via Ethereum L1 Data Availability, while examining costs, fraud-proof mechanisms, and future modular DA layer integrations.
What Is Optimism and How Does It Help Ethereum Scale
Jun 20, 2025.
Optimism is a Layer 2 scaling solution for Ethereum, utilizing Optimistic Rollups to provide faster and cheaper transactions while maintaining Ethereum’s security, thereby powering the next generation of dApps, NFTs, and DeFi.
Base Blockchain Architecture Explained
Jun 11, 2025.
In this article, we will break down the architecture of the Base blockchain in a simple and clear way. The base is built using the OP Stack, a modular framework created by Optimism.
Understanding Layer 2 Blockchains with Base as an Example
Jun 08, 2025.
Layer 2 blockchains like Base, built on Ethereum, offer faster, cheaper, and scalable solutions by processing transactions off-chain while maintaining Ethereum’s security. Ideal for dApps and cost-efficient use.
SQL Server Transaction Locks: Identification & Resolution
May 28, 2025.
Learn how SQL Server transaction locks ensure data integrity, identify locking issues using DMVs and Activity Monitor, and explore strategies like query optimization, isolation levels, and deadlock resolution for better performance.
Data Consistency in ASP.NET Core Microservices with Locks
Feb 24, 2025.
This article explores how to use distributed locks to manage concurrent operations, prevent race conditions, and maintain data integrity across microservices efficiently.
iOS 18 Release: New Features and Enhancements
Jan 10, 2025.
Apple's iOS 18, launched on September 16, 2024, introduces groundbreaking features like app locking, eye control, satellite messaging, and enhanced AI, redefining personalization, security, and productivity for iPhone users.
What's New in ASP.NET Core 9?
Nov 15, 2024.
C# 13 enhances developer productivity with features like flexible params collections, scoped locks, and partial properties, allowing for streamlined coding, improved performance, and robust thread safety.
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.
Enhancing Performance and Safety with System.Threading.Lock in .NET 9 and C# 13
Jul 22, 2024.
Explore the new System.Threading.Lock in .NET 9 and C# 13 for enhanced multithreading performance and safety. This article covers its benefits, compiler warnings for misuse, and best practices for locking in older versions.
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.
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.
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.
SQL Concurrency: Maintaining Data Integrity in Concurrent Environments
May 14, 2024.
Concurrency in databases enables multiple users or processes to access and modify data concurrently, enhancing performance. SQL concurrency ensures data consistency and integrity through locking mechanisms and advanced techniques like MVCC.
SQL Locks for Data Integrity in Concurrent Environments
May 14, 2024.
Understanding SQL Locks: Ensuring Data Integrity in Concurrent Environments
Understanding the Python Global Interpreter Lock (GIL)
Apr 23, 2024.
The Python Global Interpreter Lock (GIL) is like a traffic cop inside your computer that makes sure only one thing happens at a time in Python, even if your computer has multiple processors.
Exploring the Fundamentals of Concurrent Programming in .NET
Apr 19, 2024.
Concurrency is vital for efficient applications. .NET offers Thread, Multithreading, Task, Async & Await, Threadpool, Lock, and Deadlock tools. Understanding them enhances .NET development for scalable and responsive apps.
How to Lock Windows 11 PC Automatically when you're Away
Jan 24, 2024.
Windows 11's Dynamic Lock feature automatically locks your device when you step away.
Lock and Monitor in C#
Sep 22, 2023.
Explore the power of C# multi-threading and learn to manage concurrency with lock and Monitor. Prevent synchronization issues in concurrent code effectively.
Lock Screen in Jetpack Compose
Aug 25, 2023.
This article will describe how we can create a lock screen in Android with Jetpack Compose.
Lock Workstation in Desktop flow using Microsoft Power Automate
May 13, 2023.
Reading this article, you can learn how to Lock the workstation, using the Lock workstation action in a workstation group of actions with Desktop flow using Microsoft Power Automate.
Business Rules With Actions Lock, Unlock And Show Error Message
Aug 11, 2021.
In Dynamics 365 CRM or Power Platform, Business rules provide a quick way of applying business conditions every business rule starts with a condition. In this article we are going to see about 2 Actions Lock/Unlock and Show Error Message with a business scenario on contact entity if Vaccination is done, then lock discount field and if Vaccination is not done and when user tries to enter discount more than 50% then an error message will be shown to the user that maximum discount cannot exceed 20 % else no discount.
Locking In Azure Resource Groups
Aug 18, 2020.
In this article, you will learn about Locking in Azure Resource Groups.
How To Protect Files And Folders In Windows 10
Mar 11, 2020.
In this tutorial, I have discussed how to create a protection on file and folder in Windows 10.
How To Lock File And Folder Using Command Prompt (CMD) In Windows 10
Dec 26, 2019.
In this article, I have described how to Lock and Unlock any file and folder using the command prompt (Cmd) in windows 10.
Screen Lock Active Or Release In Xamarin Forms Application Using Xamarin Essentials For Android And UWP
Nov 16, 2018.
Reading this article, we can learn how to How to Keep your screen asleep while your application running in Xamarin Forms application using Xamarin Essentials for Android and Universal Windows Platform with XAML and Visual C# in cross-platform application development.
Creating Distributed Lock With Redis In .NET Core
Jul 16, 2018.
Learn how to implement a distributed lock using Redis in .NET Core. This guide covers the essentials of setting up Redis for distributed locking, managing concurrency, and ensuring data consistency in your .NET Core applications.
Bluetooth Controlled Door Lock
May 29, 2018.
In this article we are going to see how to work with Bluetooth, servo motor, and Arduino
Resolving "File Checked Out Or Locked For Editing" Issue In SharePoint
May 22, 2018.
A common issue in SharePoint is being unable to delete a folder due to it being checked out or locked for editing by another user. This often happens even if the user has full rights. The problem can occur if versioning is disabled, causing files to be checked out without a check-in version.
Swipe Lock In Android Using Android Studio
Apr 09, 2018.
In this article, we are going to learn how to add Swipe Lock functionality to an Android application using Android Studio.
Google Smart Lock In Android
Apr 07, 2018.
By integrating Smart Lock for Passwords into your Android app, you can automatically sign users in to your app using the credentials they have saved. Users can save both username-password credentials and federated identity provider credentials. Integrate Smart Lock for Passwords into your app by using the Credentials API to retrieve saved credentials on sign-in.
Delete The Locked Documents From SharePoint
Jan 18, 2018.
This blog will help you to understand the record declaration functionality in SharePoint Online.
How To Lock Objects In Power BI
Nov 11, 2017.
Sometimes, there is a situation where when we open a report and click on any visuals, it accidentally nudges a chart a little bit to the right or left. Sometimes, by mistake when end user viewing a report, arrangement of visuals scatters little bit. Microsoft rolls out one new amazing feature to resolve this issue and that is Lock Objects in Power BI.
Azure Service Bus - Peek-Lock A Message From Queue Using Azure Logic Apps
Oct 26, 2017.
In this article, we will take a look at how you can peek-lock on a message from a Service Bus Queue without actually reading the message from the queue.
Automated Window Lock
Oct 19, 2017.
In this article, we are going to see the light intensity controlled window which automatically locks when it gets dark or light intensity is reduced.
C# Code To Overcome "The Process Cannot Access The File XYZ Because It Is Being Used By Another Process" Error
Aug 03, 2017.
This guide provides practical C# code solutions for handling file access issues, including techniques for managing file locks and ensuring smooth file operations without interruptions.
SharePoint 2016 Central Admin - Application Management - Configure Quotas And Locks
Jan 29, 2017.
In this article you will learn about configuring Quotas and Locks in SharePoint 2016 Central Admin.
Site Collection Quotas And Locks In SharePoint 2013 Central Administration
Jan 26, 2017.
In this article you will learn about site collection quotas and locks in SharePoint 2013 central administration.
Enabling Spotlight Images On Windows 10 Lockscreen
Dec 28, 2016.
In this article, you will learn more about how to enable Windows Spotlight images on the lockscreen of Windows 10.
How To Disable Cortana On Lock Screen In Windows 10
Oct 05, 2016.
In this article, you will learn how to disable Cortana on lock screen in Windows 10.
How To Enable Cortana On Lock Screen In Windows 10
Oct 04, 2016.
In this article, you will learn how to enable Cortana on lock screen in Windows 10.
How To Change Windows 10 Lock Screen Timings
Aug 31, 2016.
In this article, you will learn how to change windows 10 Lock screen timings.
Locks In SQL Server
Apr 27, 2016.
In this article you will learn about Locks In Sql Server.
Threading Simplified: Part 10 (Monitor)
Mar 13, 2016.
This article explains what Monitor is and how to use it efficiently in a multithreading environment.
Threading Simplified: Part 9 (Thread Locking)
Mar 06, 2016.
This article explains what Thread Locking is and how to use it efficiently in a multithreading environment.
Fingerprint Lock Using Arduino Mega 2560
Feb 27, 2016.
In this article I will explain about Fingerprint Lock using Arduino Mega 2560.
Door Lock By Keypad Using Arduino
Feb 08, 2016.
In this article, I will explain about the locking and unlocking door by keypad using Arduino.
Lock The OOB Edit Form In SharePoint
Sep 14, 2015.
In this article we can explore a typical real-world scenario of locking OOB Edit Forms in SharePoint.
Turn On/Off Notifications in Lock Screen in Windows 10
Aug 07, 2015.
In this article, we will tell you how to turn on/off notifications in the Lock Screen in Windows 10.
Parallel Sorting, Exact Numeric Operations and Stamped Lock in Java 8
Jan 16, 2015.
This article describes some of the new features of Java 8
Handling Concurrency In MVC And EF
Sep 17, 2014.
This article provides a basic idea of how to handle concurrency in the Fluent API.Handling concurrency in an ASP.NET MVC application with Entity Framework (EF) is essential to ensure data consistency when multiple users or processes attempt to modify the same data simultaneously. Concurrency control mechanisms prevent conflicts and help maintain data integrity. Here's an overview of how to handle concurrency in MVC and EF.
Login Form in 3-Tier Architecture With Lock in ASP.Net
Jun 30, 2014.
This article explains how to implement a login form using ASP.NET C# in a three-tier architecture.
Monitor And Lock In C#
Jun 14, 2014.
C# Lock and C# Monitor are two keywords used in thread synchronization in C#. Here are C# Lock and C# Monitor code examples.
Change Your Lock Screen in Windows Phone
Apr 30, 2014.
In this article, we are targeting Lock Screen manipulation. In earlier versions, you can change the Lock Screen's image programmatically. But, in Windows Phone 8 SDK you can do it easily with a few lines of code.
Monitor For Thread Locking Using ReaderWriterLocking
Feb 01, 2014.
This article explains use of a Monitor for thread locking using ReaderWriterLocking.
Know Popular Global Variables in SQL Server
Jul 04, 2013.
In this article, I explain some popular Global Variables of a SQL Server Database.
Synchronous Threading
Jul 04, 2013.
Well this article is basically to explain how to make threads run synchronously.
Automatic System Locking Using Timer
Jun 12, 2013.
In this article, I am going to show how we can lock the system automatically using a timer.
How to Change the Windows 8 Lock Screen Programmatically
May 16, 2013.
Just follow the simple procedure in this article to write an application by which you can easily change your Windows 8 Lock Screen programmatically.
How To Prevent Dead Lock in Entity Framework
May 02, 2013.
Recently I am working on Entity Framework as a data access layer-based Project. We found many performance issues with this application.
Change Windows 8 Lock Screen Programmatically in Windows Store Apps
Apr 09, 2013.
In this article we explain how to change the Windows 8 Lock screen programmability in Windows Store apps.
Disable Unnecessary Animation in Windows 8
Jan 17, 2013.
In this article we are explaining how to disable unnecessary animation in Windows 8.
Shutdown and Restart System Through C# Code
Jan 09, 2013.
In this article, I am going to show how to shutdown, restart, Lock, Logoff, Sleep etc. through C# Code.
Enable Console Lock Display Off Timeout in Windows 8
Dec 15, 2012.
In this article I have described how to set Console lock display off timeout in the Windows 8 Power Options.
Set Numeric Lock On in Windows 8
Nov 29, 2012.
In this article I will show how you can keep the NumLock on always when your Windows 8 system starts.
Lock Down IE 10 by Disabling Flash in Windows 8
Nov 28, 2012.
In this article we are going to explain how to lock down IE 10 by disabling Flash in Windows 8.
How to Set Custom Image on Lock Screen in Windows 8
Nov 27, 2012.
n this article we are going to explain how to set custom image on lock screen.
Reporting - Locking the New Bug or Defect Using Microsoft Test Manager 2010
Nov 20, 2012.
In this article, you will learn how to report or lock the new bug in testing using the Microsoft Test Manager 2010.
Restrict Store Apps From Other User in Windows 8
Oct 18, 2012.
In this article we are going to explain how to restrict windows store from other user in windows 8.
Lock Folder Using Cmd in Windows 8
Oct 01, 2012.
This article describes how to lock a folder using Cmd in Windows 8.
Change Background Image of Lock Screen in Windows 8
Sep 24, 2012.
In this article I have described the way to change the lock screen background image in Windows 8.
Enable the Lock Screen in Windows 8
Sep 22, 2012.
This article describes how to enable the Lock Screen in Windows 8.