readonly keyword is used to define a variable
which can be assigned once after declaration
either during declaration or in constructor.
const keyword is used to define a constant to be used in the program.
A const is a compile-time constant whereas readonly allows a value to be calculated at run-time and/but be set in the constructor or field initializer. So, a 'const' is always known at compile time but 'readonly' is not necessarily known at compiletime, but once it is assigned nant be changed.
constant and readonly both are not midificable. constant has to be known at compiletime while readonly could be left to be assign once in runtime limetedly(initilizer/constructor but not every wher of the code you like)
with some modification to original
https://learn.microsoft.com/en-us/archive/blogs/ericlippert/immutability-in-c-part-one-kinds-of-immutability
https://stackoverflow.com/questions/55984/what-is-the-difference-between-const-and-readonly-in-c#:~:text=A%20const%20is%20a%20compile,on%20different%20types%20of%20immutability.