Why using variable treated as readonly? It is c# language specification or managed languages specification? It is because c# is a .net language? Thanks in advan
readonly is a keyword in C#. It's useful when you want to ensure the value never changes outside a constructor.
This keyword could be helpful when you're contributing code to a large project and you're worried coworkers might try to change a variable that should never be altered.
Edit: I'm curious why someone downvoted my answer. Whoever downvoted can you please show my where my answer is wrong? Thanks.