FIELD
readonly field
Restricts field reassignment to permitted initialization contexts, not deep object immutability.
Formal Syntax & Structure
csharp syntaxcsharp
private readonly int quantity;Working Example
Example Snippetcsharp
private readonly int quantity;