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]
Abhishek Jaiswal (2)
Mahesh Chand(2)
Aarav Patel(1)
Mariem Moalla(1)
Jaimin Shethiya(1)
Ramasagar Pulidindi(1)
Akbar Mulla(1)
Mukesh Kumar(1)
Shashangka Shekhar(1)
Muneer Akhtar(1)
Vikram Chaudhary(1)
Jasminder Singh(1)
Rohatash Kumar(1)
Shweta Lodha(1)
Jean Paul(1)
Sachin Kalia(1)
Yogendra Kumar(1)
Sourabh Mishra(1)
Akhil Mittal(1)
Vithal Wadje(1)
C# Curator(1)
sayginteh (1)
Abhishek Yadav(1)
Rahul Sahay(1)
Sourabh Somani(1)
Amit Choudhary(1)
Matthew Cochran(1)
Praveen Kumar(1)
Resources
No resource found
Difference Between readonly and const in C# with Examples?
Apr 16, 2026.
Understand the crucial differences between `readonly` and `const` in C#. Learn when to use each keyword for optimal code clarity, performance, and maintainability in C# applications.
Why Readonly Doesn't Make Objects Immutable in C#
Aug 09, 2025.
Understanding Readonly Accessors and Their Impact on Reference Types in C#.
Difference Between ReadOnly and Constant in .NET C#
Apr 26, 2024.
In C#, `readonly` and `const` keywords declare values with key differences. `const` is compile-time, immutable, and static, while `readonly` is runtime, set in constructors, and can vary. Choose based on usage scenarios.
Ref Readonly Parameters in C# 12
Jan 03, 2024.
C# 12 unveils a hidden gem: ref readonly parameters. This article delves beyond the surface, offering a deep dive into their benefits, usage patterns, and how they differ from familiar options like ref and in. Embrace their power for safer, clearer, and more efficient code. In the current digital era, we try to de-couple applications from one another so it is supposed to adapt to plug it in another version or another application easily.
Keywords - Const, ReadOnly, And Static ReadOnly In C#
Mar 20, 2018.
In this article, I am going to explain about const, read-only, & static keywords in C#.
Constant, ReadOnly And Static Keyword In C#
Oct 06, 2015.
In this article, I will demonstrate you all, what are the Constant, ReadOnly and Static keyword in C#.
Constant VS ReadOnly In C#
Sep 28, 2015.
In this article, we will learn constant and readonly in c#. Here we will discuss the differences. In C#, both const and readonly are used for defining values that cannot be modified after they are assigned. However, there are important differences between the two.
Const, ReadOnly And Static Variables In C#
Jun 04, 2015.
C# (C Sharp) is a versatile programming language developed by Microsoft. It offers a rich set of keywords that enable developers to create powerful and efficient applications. Keywords like `class` allow the definition of custom data structures and behaviors, while `async` and `await` facilitate asynchronous programming, making it easier to handle tasks concurrently. The `delegate` keyword empowers event handling and callbacks, fostering interactive applications. C# supports object-oriented principles with keywords like `interface` and `override`, promoting code reuse and maintainability. Additionally, `try-catch` ensures robust error handling, and `readonly` and `const` enforce data immutability. These keywords, among others, make C# a preferred choice for building a wide range of software, from desktop applications to web services and games.
Const and Readonly (Fields) in C#
Mar 08, 2015.
The article describes constants and various types of fields in C# and how to use them in programming.
Constant vs Readonly vs Static Keywords in C#
Aug 20, 2014.
This article explains the three most commonly used but confusing keywords. I am explaining them in reference to C#.
Constant vs Readonly vs Static in C#
Aug 18, 2014.
This article explains the three most commonly used but confusing keywords. I am explaining them in reference to C#.
Const vs Readonly in C#
Jun 04, 2014.
This article explains const vs readonly in C#. Basic difference between const vs readonly is that one needs to be assigned a value at compile time and the other at run time.
Const, ReadOnly and Static Keywords in C#
May 15, 2014.
Explore the differences between const, readonly, and static keywords in C#. This guide covers their unique functionalities, use cases, and best practices in C# programming. Learn how to effectively use these keywords to define constants, immutable fields, and class-level members in your code.
Const and Readonly Keywords in C#
Apr 17, 2014.
This article explains the const and readonly keywords in depth as well as a bit on the ildasm.
How to Make a Site Collection ReadOnly in SharePoint 2010
Oct 07, 2013.
In this article, we can explore how to make a Site Collection read-only.
Modify the Value of Readonly Varibale
May 31, 2013.
This article explains how to modify the value of a readonly variable in C#.
Difference Between Const, ReadOnly and Static ReadOnly in C#
Mar 26, 2013.
Common keywords like Const, ReadOnly, and Static ReadOnly are quite confusing. So today we will discuss these keywords and try to understand the difference between Const, ReadOnly, and Static ReadOnly in C#.
ng-readonly Directive In AngularJS
Sep 27, 2016.
In this article, you will learn about ng-readonly directive in AngularJS.
Diving Into OOP (Day 5): All About Access Modifiers in C# (C# Modifiers/Sealed/Constants/Readonly Fields)
Jul 01, 2014.
In this article we will cover each and every concept related to access modifiers in C#.
Readonly and Constant Variables in C#
Nov 18, 2013.
This article will teach C# readonly and C# const variables with code examples.
Readonly and constant members
May 26, 2009.
Here in this article i will give your a small and clear difference of Readonly members, constant members used in C#.
Difference between Const and Readonly
Aug 05, 2001.
In summary, use const for compile-time constants shared across all instances, and use readonly for instance-specific constants that can be set at runtime but remain unchangeable after initialization.
Displaying a Customers List Inside an ASP.NET Core 3.0 Razor Pages Web Application
Apr 04, 2020.
In this article, we will be displaying a list of all of the customers from the database.
IEnumerable and ICollection in C#
Jun 23, 2015.
In this article you will learn about IEnumerable and ICollection in the C# language.
Read Only Directive in AngularJS
Dec 17, 2013.
This article will show you how to use Read Only Directives in AngularJS.
How to check if a file is read only in C#
Jul 14, 2012.
How to check if a file is read only in C#. The IsReadOnly property of the FileInfo class returns if a file is read only.
Rarely used keywords in CSharp but Frequently asked in discussions [Beginners]
Sep 15, 2011.
There are a few words that we rarely use in day to day C# practices [I’m focusing readers who are beginners]. But I’ve seen them in either online exams or other IT quiz shows. So I came to write something about those untouched keywords.
XML Serialization/Deserialization of Immutable Objects
Apr 19, 2010.
Here’s a brief example of how to serialize and deserialize immutable objects to XML.
Constants in C#
Nov 18, 2009.
In this article I will explain about constants.
Data Column in ADO.NET
Oct 30, 2009.
In this article I will explain about Data Colum in ADO.Net.