Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 4
    I had to look down several answers to find this link, but it's a good one. Eric Lippert's take on immutability in C# Commented Dec 17, 2015 at 16:06
  • 5
    @donstack, actually according to the C# reference, A readonly field can be assigned and reassigned multiple times within the field declaration and constructor.
    – Marques
    Commented Oct 23, 2019 at 16:45
  • Here is the detail explanation for const vs readonly youtu.be/jA30qZNGNoM
    – Parveen
    Commented Oct 30, 2022 at 11:34