They say the difference between readonly and const is that const is compile-time (while readonly is run time). But what exactly does that mean, The fact that it’s compile time? Everything gets compiled to byte code doesn’t it?
They say the difference between readonly and const is that const is compile-time (while
Share
It just means that every instance of the member marked as
constwill be replaced with its value during compilation, while readonly members will be resolved at run-time.