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(5)
John Godel(4)
Sandhiya Priya(4)
Ehsan Sajjad(4)
Vinod Kumar(4)
Mahesh Chand(3)
Pankajkumar Patel(3)
Banketeshvar Narayan(3)
Rinki (2)
Hamid Khan(2)
Swagata Prateek(2)
Tanuj (1)
Ajay Narkhedkar(1)
Ananya Desai(1)
Vishal Gami(1)
Sandeep Thomas(1)
Ziggy Rafiq(1)
Keyur (1)
Ravinder Singh(1)
Amit Bhatt(1)
Gurpreet Arora(1)
Satya Karki(1)
Kirtesh Shah(1)
Jin Necesario(1)
Hari Haran(1)
Ashutosh Gupta(1)
Prakash Tripathi(1)
Harsha Vardhini(1)
Thiago Vivas(1)
Usama Shahid(1)
Pradeep Yadav(1)
Madhanmohan Devarajan(1)
Shamim Uddin(1)
Santosh Kumar Adidawarpu(1)
Rajesh Pawde(1)
Rion Williams(1)
Yash Soman(1)
Yaseen Kalo(1)
Vishal Verma(1)
Sharad (1)
Anas Chaudhary(1)
Sourav Kayal(1)
Nimit Joshi(1)
Sachin Kalia(1)
Jaganathan Bantheswaran(1)
Vijai Anand Ramalingam(1)
Robert van Kooten(1)
Gomathi Palaniswamy(1)
Abdul 0(1)
Jaish Mathews(1)
Sachin Nigam(1)
Akshay Amin(1)
Tuhin Paul(1)
Vijay Pratap Singh(1)
Naveen Kumar(1)
Tural Suleymani(1)
Divyang Desai(1)
Mohammad Irshad(1)
Guest User(1)
Ankit Kanojia(1)
Vikram Chaudhary(1)
Max McCarty(1)
Jasminder Singh(1)
Lavish Maheshwari(1)
Ramasagar Pulidindi(1)
Nipun Tomar(1)
Amit Tiwari(1)
Sandeep Sharma(1)
Abhimanyu K Vatsa(1)
Puneet Walecha(1)
Ravishankar Singh(1)
Sivaraman Dhamodaran(1)
Saradha Gnanavel(1)
Doug Doedens(1)
Saurav Kumar(1)
Resources
No resource found
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.
Nullable Reference Types in C# – Eliminating the Billion-Dollar Mistake
Mar 02, 2026.
C#'s Nullable Reference Types (NRT) combat the infamous "billion-dollar mistake" by catching null reference exceptions at compile time, boosting code reliability and maintainability.
How to Fix “Undefined Reference to main” Error in C
Feb 20, 2026.
Fix the "undefined reference to main" error in C! This guide provides a step-by-step solution to this common C compiler issue, covering causes and fixes. Perfect for beginners!
Building Production AI Agents with LLMs Using GSCP-15: A Technical Reference Architecture
Jan 16, 2026.
GSCP-15: A reference architecture for building reliable, scalable AI agents. Learn how to move beyond demos to production-ready systems with contracts, state, and verification.
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.
Autonomous AI in Enterprise: Reference Architecture, Protocols, and Implementation Blueprint
Jan 03, 2026.
Build safe, scalable autonomous AI in the enterprise! This article provides a technical reference architecture, implementation blueprint, & key protocols.
Value Types and Reference Types in C#
Dec 28, 2025.
Unlock C# mastery! This guide clarifies value vs. reference types, impacting memory, performance, and bug prevention. Essential for efficient .NET development.
How Do I Fix “Object Reference Not Set to an Instance of an Object” in C#?
Dec 03, 2025.
Learn simple, clear, and practical ways to fix the common C# error "Object reference not set to an instance of an object." Understand why it happens, how to identify the root cause, and how to prevent it using real-world examples.
Understanding Template Reference Variables, ViewChild, and DOM Manipulation in Angular
Nov 25, 2025.
Unlock Angular DOM manipulation! Master Template Reference Variables, ViewChild, and Renderer2 for direct element access and enhanced component interaction. Build robust apps!
CSHTML (Razor) Cheat Sheet — Quick Reference for ASP.NET Core
Nov 21, 2025.
Quickly master ASP.NET Core Razor syntax with this handy cheat sheet! Covers data binding, tag helpers, loops, forms, partials, layouts, and more for efficient development.
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.
Generative AI: AI-First Data Modeling for Financial Services: From Reference Models to Intelligent Data Products
Aug 31, 2025.
Evolve financial data models for AI! Learn how to transform reference models into governed data products powering real-time analytics, ML, and LLM workflows.
What are Value Types vs Reference Types in C#?
Jul 31, 2025.
Learn the difference between value types and reference types in C#. This complete guide breaks down memory allocation, performance, behavior, and code examples to help you master both.
Solid Principle in C# : A Quick Reference with Example
Mar 24, 2024.
These principles guide object-oriented design for more understandable, flexible, and maintainable software. The Single Responsibility Principle suggests a class should have only one reason to change, such as a User class handling user properties but not user persistence.
A Comprehensive Guide to Nullable Reference Types in C# 10
Mar 07, 2024.
Explore a comprehensive guide to leveraging nullable reference types in C# 10 by Ziggy Rafiq, providing detailed explanations, code examples, and best practices for improving code safety and robustness. Learn how nullable reference types enable developers to catch null-related bugs at compile time, reducing the likelihood of runtime errors and enhancing code quality.
Value Types vs Reference Types in C#
Nov 18, 2023.
This comprehensive guide delves into the fundamental concepts of C# data types, distinguishing between value types and reference types. Covering characteristics, pros and cons, key differences, and best practices, it offers insightful recommendations for optimal programming.
Passing an argument by reference in C#
Aug 20, 2023.
This article contains useful information about how to use ref keyword in your C# program with the proper and easy to understand example.
How To Use Reference And Borrowing In Rust?
Apr 25, 2023.
references and borrowing in rust, rust, references in rust
Ref Vs Out And Value Type Vs Reference Type
Sep 06, 2022.
In this article, you will learn about ref vs out and value type vs reference type.
Pass By Value And Pass By Reference In JavaScript😀
Jun 01, 2022.
In this article, you will learn about Pass by value & Pass by reference in JS.
How To Handle Nullable Reference In .NET 6
Apr 18, 2022.
As we know there are so many changes in .Net 6 and C# 10. This article describes one of the changes in C#10 on writing properties and objects of a class with an example.
The Complete Reference - Table Scan, Index Scan, And Index Seek
Sep 16, 2021.
In this article, you will learn about Table Scan, Index Scan, and Index Seek.
C# - Understand Equality For Value Type And Reference Type
Oct 21, 2020.
In this article, you will learn about the nuances of equality comparison in C#, distinguishing between value types (like structs) and reference types (like classes). Understand how the == operator behaves differently for each and ensure accurate comparisons in your code.
JavaScript Primitive And Reference Types
Oct 02, 2020.
This article will discuss the builtin types of JavaScript and the difference between primitive and reference types.
The Complete Reference - Set Operations In MS SQL - UNION [ALL], INTERSECT, EXCEPT
Sep 12, 2020.
In this article, you will see the Complete Reference - Set Operations in MS SQL: UNION [ALL], INTERSECT, EXCEPT.
The Complete Reference - Ranking Functions In MS SQL - ROW_NUMBER(), RANK(), DENSE_RANK() And NTILE()
Sep 01, 2020.
In this article you will learn about The Complete Reference - Ranking Functions in MS SQL: ROW_NUMBER(), RANK(), DENSE_RANK() and NTILE()
Equal, ==, And Reference Equal In C#
Aug 12, 2020.
In this article, you will learn about equal ,==, and reference equal in C#.
Async Await Reference Implementation
Jun 05, 2020.
In this article, you will learn about async Await Reference Implementation.
Add ILogger Reference at Startup in Azure Function
Mar 03, 2020.
ILogger is used to write to a log file. Learn how to use ILogger at startup in an Azure function.
Method Parameter And Reference Changes - C# 6 To C# 9 New Features - Day Two
Jan 16, 2020.
This article covers the changes done for method parameters and method references and focuses on “in”, “out”, “ref” and “readonly” keywords related changes in the newer version of C#.
Null Value And Null Reference Handling - C#6 To C# 9 New Features - Day One
Jan 07, 2020.
This article covers the options available in C# for null value and null reference handling. It includes new features of null handling introduced in C# 6.0, C# 8.0, and the upcoming version of C# 9.0.
C# 8.0 ('Nullable Enable') To Avoid Null Reference Exception
Dec 16, 2019.
Explore the C# 8.0 nullable enable feature, identifying null reference exceptions in production code. Understand its implementation, compiler verification, and error detection, ensuring proper initialization and handling of nullable properties. Improve code reliability and prevent runtime errors during development.
Working With Nullable Reference Types In C# 8.0
Oct 14, 2019.
This article explains how to work with Nullable reference types in C# 8.0 and demonstrates how to use it in application development.
How To Add Custom CSS File In SharePoint Framework Projects And Reference It In Your Component
May 12, 2019.
In this article, you will learn how to add a custom CSS file in the SharePoint framework (SPFx) projects and refer to it in your component.
Get to the Bottom of C# Object Reference Not Set to an Instance of an Object in Visual Studio
Nov 24, 2018.
Struggling to understand why you're receiving the C# error Object Reference Not Set to an Instance of an Object? Learn the basics of this issue in Visual Studio and uncover the potential solutions our comprehensive guide offers.
Difference Between Value Type Variables And Reference Type Variables
Apr 03, 2018.
Before we get started between the difference of value type variables and reference type variables, we need to understand the concept of stack and heap. So let’s get started with stack and heap.
Implementing Equality For Reference Types
Mar 26, 2018.
Learn how to implement equality for reference types in C# to compare objects based on their values rather than their references. Understand the complexities introduced by inheritance and null handling. Explore the process of overriding the Equals method, implementing GetHashCode.
Stack, Heap, Value Type, And Reference Type In C#
Feb 13, 2018.
Now, let’s see what happens when we declare any variable like int a=10 in C#. When C# compiler will run, it will allocate a block of memory which will have name of variable i.e. a, its type i.e. int and its value i.e. 10. Now this memory can be of type Stack or Heap i.e. variable gets store in Stack or Heap.
C# 8.0 - Experimenting With Non-Nullable Reference Type Using Visual Studio 2017
Dec 28, 2017.
Nullable Reference Type is one of the most popular upcoming features of C# which may be released with C# 8.0. However, C# 8.0 has not been released yet; development is going on so till the final release, its behavior may be a little bit different than the current behavior explained in this article.
Dynamics CRM - Find Related Contact's Reference And Link It To Custom Entity Using JavaScript
Mar 21, 2017.
In this article, you will be acquainted with Dynamics CRM - find related contact's reference and link it to custom entity , using JavaScript.
Quick Reference To TypeScript
Sep 07, 2016.
In this article, you will learn about TypeScript.
== Operator and Reference Types in C#
Aug 31, 2016.
In this article, you will learn how equality operator works behind the scene when comparing reference types
Insecure Direct Object Reference And Its Prevention Mechanism
Jun 19, 2016.
In this article you will learn about Insecure Direct Object Reference and its prevention mechanism.
Project Reference Vs Dll Reference in Visual Studio
Mar 06, 2016.
In this article you will learn about what Project Reference and Dll Reference are in Visual Studio.
Story Of Pass By Value And Pass By Reference In C#
Dec 24, 2015.
The ref keyword is used pass a value by reference in C#. Learn the difference between Pass By Value and Pass By Reference in C# and .NET with code examples.
Debugging Deeper Through Reference Source
Nov 30, 2015.
In this article you will learn how to debug deeper through Reference Source.
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.
Value Type And Reference Type Variables
Aug 29, 2015.
In this article we will learn about Value Type and Reference Type variables.
C# Concepts - Value Type And Reference Type
Aug 21, 2015.
This article explains C# concepts of Value and Reference types.
String a Reference Type Like a Value Type in C#
Jul 17, 2015.
We often come across the question about what value types and reference types are in ASP.Net C#.
Method Reference in Java 8
Jan 20, 2015.
In this article we learn about Method Reference, a new feature of Java 8.
Complete Reference of Map Control in Windows Phone 8.1 WinRT
Jan 16, 2015.
In this article you will learn a complete go to reference for doing any introductory work on Windows Phone 8.1 WinRt map control.
Passing Object With Reference And Without Reference In PHP
Nov 28, 2013.
This article explains the passing of an object with a reference and the passing of an object without a reference in PHP.
Call by Value and Call by Reference in JavaScript
Nov 21, 2013.
In this article we will learn the concept of Call by Value and Call by Reference.
Understanding the Core Reference in ASP.Net Web Application
Nov 08, 2013.
In this article, I am describing the availability of core references for the ASP.NET Web Application in Visual Studio 2013.
Add Reference of jQuery Files in Custom js File
Apr 08, 2013.
In this article I am sharing my thoughts on adding a reference file to a solution to get the functionality of a specific .js file.
Call By Value And Call By Reference In PHP
Dec 24, 2012.
In this article I am going to explain call by value and call by reference in PHP
How to Create Reference Tables in LightSwitch Beta 2
Jun 27, 2011.
Here we shall discuss how to make reference tables i.e. how to make a relationship among LightSwitch internal tables.
Add Web Reference in Visual Studio 2010
Jun 15, 2011.
In this article we will be seeing how to add web reference in Visual studio 2010.
Patterns for centralising reference data management
Dec 13, 2010.
Sharing data can be difficult, this article shows some patterns you can use to share data between applications without causing tight coupling. Each pattern is described with its merits and drawbacks to allow you to make an informed decision.
Difference Between Value Type And Reference Type
Dec 02, 2010.
This article tells us the difference between value type and reference type variables.In programming, data types are categorized as either "value types" or "reference types." These terms refer to how data is stored, managed, and manipulated in memory. Here's a description of the key differences between these two types.
System.Windows.Xps.Packaging Reference Missing
Mar 01, 2010.
If you need to use XpsDocument class in your WPF project, you must add reference to System.Windows.Xps.Packaging namespace.
Consuming Web Services Without Web Reference in BizTalk
May 02, 2009.
This articles tells us how to consume Web Services without web reference in BizTalk.
Working Of Reference Type And Value Type
Sep 18, 2006.
This article shows you all the difference between reference and value type variables.
Difference between passing reference types by ref and by value
Sep 02, 2004.
We all know the difference between passing value types byval and byref, if the variable is passed byval any change to the variable value in the called function is not reflected back in the callee.
Reference Architecture for an AI Control Plane: The Technical Blueprint for Governed Agentic AI
Jan 16, 2026.
Architecting a secure AI control plane for governed agentic AI. This reference architecture ensures safety, auditability, and operability at scale. Learn the blueprint!
Understanding Garbage Collection, Cyclic References, and Memory Management in C#
Oct 27, 2025.
Master C# memory management! Explore garbage collection, cyclic references, weak references, and IDisposable for efficient, leak-free .NET applications.
Understanding Garbage Collection, Cyclic References, and Memory Management in C#
Oct 27, 2025.
Master C# memory management! Explore garbage collection, cyclic references, weak references, and the IDisposable pattern for efficient, leak-free .NET apps.
Chapter 8: References, Call by Value vs. Call by Reference
Oct 23, 2025.
Unlock the power of references and parameter passing in C++! This chapter clarifies the crucial differences between call by value (copying data) and call by reference (using aliases or pointers). Learn how to efficiently modify variables directly within functions using references and pointers, and discover the benefits of const references for performance and data safety when working with large objects.
Secure Configuration for Azure Functions Using Azure Key Vault References
Oct 18, 2025.
Eliminate hardcoded secrets in Azure Functions using Azure Key Vault references for enhanced security and compliance. This guide demonstrates a real-world smart grid anomaly detection scenario, showcasing how to securely store and manage secrets like database passwords and API keys. Learn how to implement zero-trust secret management, enabling instant secret rotation without redeployment and ensuring full auditability. Protect your sensitive data and achieve compliance with industry standards.
Understanding Garbage Collection and Cyclic References in C#
May 20, 2025.
This article explores .NET memory management, focusing on how the garbage collector handles cyclic references, and how weak references and the `IDisposable` pattern help prevent memory leaks in C# applications.
How to Create and Use Key Vault References in .NET Core Web API
Oct 28, 2024.
Azure App Configuration allows your application to use Key Vault references by creating keys that point to values stored in Key Vault. Rather than storing sensitive data directly, App Configuration uses URIs that reference Key Vault values, ensuring security and flexibility.
T-SQL Script for Purging Tables with Foreign Key References
Aug 02, 2024.
This article provides a comprehensive T-SQL script for purging tables in SQL Server, including those with foreign key references, ensuring data integrity and correct order of operations. Ideal for SQL Developers, Data Engineers, and DBAs seeking efficient data management solutions.
Reference Types Are Not Passed By Reference!
Feb 20, 2023.
This article will help you to understand what are the real differences between reference and value types and how reference types behave under the hood
Reference Types In Solidity
Feb 20, 2019.
The Solidity data types can be classified according to the data location. If a variable stores its own data; it is a value type. If it holds a location of the data; it is a reference type. We have gone through value types in previous articles. So, in this article, we will learn about reference types.
Reference Variable In Angular
Oct 29, 2018.
In this article, we are going to learn the reference variable in Angular. Reference variables are used to send the data from a template HTML to the class so as to perform some operation.
Preventing Insecure Object References In ASP.NET Core 2.0
Jan 10, 2018.
How to prevent insecure direct object reference in ASP.NET Core.
How To Use A WCF Service Without Adding Service Reference
Dec 22, 2016.
In this article, you will learn how to use a WCF Service without adding service reference.
Understand Virtual Object.Equals, Static Object.Equals and Reference.Equals in Object Class
Jun 27, 2016.
In the Object class of C#, the Equals method can be overridden, creating virtual and static versions. Virtual Equals compares content, static compares references, while Reference. Equals provide reference equality. Understanding these aids in effective object comparison and customization.
Passing Parameter by Value and by Reference
Aug 31, 2015.
This article takes you through a basic understanding of how a parameter is passed by value and by reference to a function in C#.
Securing Your ASP.Net App Data That Has an Insecure Direct Object Reference
Mar 11, 2015.
In this article we will learn about measures for making your ASP.NET App Data Secure.
Maps With MVVM on Windows Phone 8.1: The Complete Reference
Jan 22, 2015.
A beginners excerpt of using Windows Phone 8.1 MapControl using MVVM and Custom Pushpin.
XAML ToolTip Reference
Jan 14, 2015.
XAML ToolTip element represent a ToolTip of control that can be set using the ToolTip property of a WPF control. Here are some code examples of how to show tool tips of controls in WPF.
Reference and Value Types as Function Parameters Using Ref/Out Keywords
May 13, 2014.
In this article, we will try to study the behavior of the ref and out keywords when we use them as function parameters.
Classes, Objects, and References
Apr 06, 2014.
In this article I will tell you about Classes, Objects, and References.
Understand JavaScript Callback Functions and Call by Value and Call by Reference
Mar 30, 2014.
This article explains callback functions, call by value and call by reference in JavaScript.
Reference Cursor in Oracle
Nov 28, 2013.
In this article you will learn about Reference Cursors in Oracle.
Object References In PHP
Nov 01, 2013.
This article is explain Object References in PHP. Object references introduce in php5.
Programmatically Creating Proxy of the WCF Service Client Application Without Adding Service Reference
Aug 08, 2013.
In this exercise we will see how to design a proxy using APIs provided by WCF.
Java Class References
Jul 25, 2013.
In this article we discuss how one class call to another class in java.
References in PHP
Mar 20, 2013.
In this article I will explain references in PHP.
Reference Directive in ASP.Net using VB.NET
Nov 09, 2012.
In this article we will discuss how to use Reference Directive.
Reference Type And Value Type in C#
Aug 05, 2011.
This article will give you a clear insight on what happens when a reference type is passed by value and what would happen when it is passed by reference.
Reference webpart in SharePoint 2010
Mar 31, 2011.
In this article I am just going to explain how to create a reference webpart programmatically.
Passing parameters To A function By Value And By Reference
Oct 25, 2010.
In this article we will see how to pass parameters to a function by Value and by Reference.
Will Swap Work If C# Manipulates Objects By Reference?
Feb 15, 2005.
C# does manipulate objects by reference, and all object variables are references. On the other hand, C# does not pass method arguments by reference; it passes them by value. Thus, a regular swap method will not work!
Macro to Update References of all Projects in a Solution
Jul 24, 2002.
When working in enterprise development there are occasions when you have a solution file with 10 or more projects in it all using private assemblies.
What is the difference between struct and class in C# with performance comparison?
Apr 22, 2026.
Unlock C# performance! Explore struct vs. class differences: memory, speed, and use cases. Optimize your .NET apps with the right choice for efficiency.
Difference Between ref and out Parameters in C# with Examples?
Apr 20, 2026.
Unlock the power of ref and out parameters in C#! Master passing arguments by reference, modifying existing values with ref, and returning multiple values with out. Enhance your C# coding skills!
What is the Difference Between Record Struct and Class in C#?
Apr 08, 2026.
Unlock the secrets of C#! Learn the key differences between record struct and class for optimal performance and maintainability. Master data type selection!