Constant, Readonly and Static readonly
Constant | Readonly | Static readonly |
cant be changed runtime. | Run time constant | Global value for all instances of the class. Can be changed only once at runtime. |
cant be changed runtime. | you can initialize value of variable only once at runtime in a constructor | Can be changed only once at runtime. |
No comments:
Post a Comment