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]
Aarav Patel(3)
C# Curator(2)
Niharika Gupta(1)
Sandhiya Priya(1)
Mariem Moalla(1)
Micheal Xavier A (1)
Diptiranjan Sutar(1)
Mark Pelf(1)
Thiago Vivas(1)
Yash Soman(1)
Abhishek Arora(1)
Sushila Patel(1)
Resources
No resource found
What Is a NullReferenceException in C# and How to Fix It Properly?
Apr 07, 2026.
Master C# NullReferenceExceptions! Learn to identify, fix, and prevent this common error with practical examples, null checks, and modern C# features for robust code.
Fix NullReferenceException in C# When Accessing Object Properties?
Jan 14, 2026.
Master C# NullReferenceExceptions! Learn to identify, debug, and fix null errors with practical examples, null checks, and operators for robust code.
How to Fix “Object Reference Not Set to an Instance of an Object” in C#?
Mar 31, 2026.
Master the dreaded 'Object reference not set' error in C#! Learn to identify, fix, and prevent NullReferenceExceptions with practical C# and ASP.NET Core examples.
Server Error in ‘/’ Application – Object Reference Not Set to an Instance of an Object
Jan 16, 2026.
Troubleshoot the 'Object reference not set to an instance of an object' error in ASP.NET. Learn to identify the cause using stack traces and implement safe, defensive coding practices with null checks to prevent runtime errors.
Null Conditional Assignment in C#
Nov 15, 2025.
Learn how to use the null conditional assignment operator (?.) in C# to simplify null checks and prevent.
Best Ways to Handle Null Reference Exceptions in C#
Sep 23, 2025.
This article provides practical strategies to prevent and handle NREs effectively. Learn to use null checks, the null-conditional and coalescing operators, proper object initialization, and C# 8's nullable reference types. Write robust, error-free C# code and improve application stability by anticipating and safely managing null values.
The Null Survival Kit: Understanding C# Null Operators
Sep 10, 2025.
Master C#'s null operators! This guide explores the null-coalescing operator (??), null-conditional operator (?.), null-forgiving operator (!), and more. Learn how to handle null values safely and write cleaner, more robust code, avoiding dreaded NullReferenceExceptions. Discover modern C# patterns for null checks and assignments, improving code readability and maintainability. From the 'Fallback Friend' to the 'YOLO Operator', understand each operator's purpose and usage.
Null-Conditional Operators in C# - Simplifying Null Checks & More
May 27, 2024.
Explore the null-conditional operators in C# 6.0, which simplify null checks and prevent NullReferenceExceptions. Learn about the ?. operator, null-conditional indexing, and combining these with null-coalescing for robust code. Enhance your understanding of null safety in C#.
Thread-Safe Events In C#
Jul 30, 2022.
Discussion on the proper method to check for null-value and raise Event in C#.
.NET Core - Handling Exceptions
Sep 03, 2019.
In this article, we are going to explore different exceptions and how to handle them in order to get maximum usage from a try catch block.
Elvis To Rescue From "Object Reference Not Set To An Instance Of An Object"
Oct 22, 2015.
The article is about using Elvis operator which is introduced in C# 6.0. It gives an example of how to use it.
Null Propagation Operator: A New Feature of C# 6.0
Jan 22, 2015.
On November 12, 2014, Microsoft announced Visual Studio 2015 Preview and C# 6.0, featuring the Null Propagation Operator. This operator simplifies null checks, reducing code complexity and bugs. It allows checking for null values in object reference chains using the ?. operator, streamlining error handling and improving code readability.
Propagation of Exceptions in C#
Jan 02, 2010.
In this article I will explain you about Propagation of Exceptions in C#.
Throw Statement in C#
Jan 01, 2010.
In this article I will explain you about Throw Statement in C#.
Handling Null Values in DataGrid
Jul 17, 2003.
n C# programming, developers often encounter the "Object reference not set to an instance of an object" exception, commonly known as a NullReferenceException. However, with the introduction of the Null-Conditional operator in C# 6, handling such exceptions has become easier.