Timeline for What is the difference between const and readonly in C#?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 29, 2017 at 17:38 | comment | added | Minh Tran |
Can you explain why const declarations can't be made inside methods?
|
|
S Apr 27, 2016 at 23:05 | history | suggested | Michael Blackburn | CC BY-SA 3.0 |
clarifying declaration of const as static is not allowed, cleanup of markup
|
Apr 27, 2016 at 20:58 | review | Suggested edits | |||
S Apr 27, 2016 at 23:05 | |||||
Sep 29, 2014 at 4:22 | review | Suggested edits | |||
Sep 29, 2014 at 4:52 | |||||
Dec 13, 2013 at 20:21 | comment | added | nawfal |
They Can not be static, they are static. You should make it clear if you meant one can't declare static const int i = 0;
|
|
Sep 17, 2012 at 11:48 | history | answered | Sujit | CC BY-SA 3.0 |