Timeline for What is the use of static variable in C#? When to use it? Why can't I declare the static variable inside method?
Current License: CC BY-SA 4.0
33 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 28, 2020 at 16:33 | history | protected | Machavity♦ | ||
| S Apr 23, 2019 at 12:56 | history | suggested | emperorfin | CC BY-SA 4.0 | fixed grammar in question. |
| Apr 23, 2019 at 12:20 | review | Suggested edits | |||
| S Apr 23, 2019 at 12:56 | |||||
| Jan 8, 2019 at 16:44 | answer | added | TomHardy | timeline score: 9 | |
| Aug 13, 2018 at 11:41 | answer | added | Mehran Sarrafi | timeline score: 0 | |
| Apr 12, 2018 at 9:53 | answer | added | pratham gn | timeline score: 0 | |
| Jan 29, 2018 at 15:12 | history | edited | Uwe Keim | CC BY-SA 3.0 | added 102 characters in body |
| Jul 27, 2017 at 13:23 | answer | added | JohnRC | timeline score: 2 | |
| Jan 4, 2017 at 20:27 | answer | added | Md Shahriar | timeline score: -2 | |
| Nov 18, 2016 at 8:01 | answer | added | Kunal Mukherjee | timeline score: 5 | |
| Aug 23, 2016 at 14:02 | answer | added | Arnold Parge | timeline score: 0 | |
| Apr 29, 2016 at 5:38 | answer | added | MichaelY | timeline score: 1 | |
| Sep 2, 2015 at 16:58 | review | Close votes | |||
| Sep 6, 2015 at 0:02 | |||||
| S Sep 2, 2015 at 16:17 | history | suggested | Null | CC BY-SA 3.0 | fixed capitalization, punctuation; improved grammar |
| Sep 2, 2015 at 15:50 | review | Suggested edits | |||
| S Sep 2, 2015 at 16:17 | |||||
| Mar 10, 2015 at 23:02 | comment | added | Jaider | You can access static variables/methods through the type (in this case Book) no through an instance (book), so the easier solution is Book.myInt. | |
| May 3, 2013 at 6:31 | review | Suggested edits | |||
| May 3, 2013 at 6:33 | |||||
| S Apr 22, 2013 at 12:56 | history | suggested | Shawn | CC BY-SA 3.0 | grammar... |
| Apr 22, 2013 at 12:54 | review | Suggested edits | |||
| S Apr 22, 2013 at 12:56 | |||||
| Jun 1, 2012 at 18:06 | history | edited | Pranay Rana | edited tags | |
| May 31, 2012 at 13:56 | vote | accept | Kartik Patel | ||
| May 29, 2012 at 15:28 | history | edited | Pranay Rana | CC BY-SA 3.0 | deleted 12 characters in body |
| May 29, 2012 at 13:22 | comment | added | Pranay Rana | dont forget to mark answer as accepted if you got the info you want... | |
| May 29, 2012 at 9:54 | answer | added | Kartik Patel | timeline score: 196 | |
| May 29, 2012 at 8:55 | comment | added | Hans Passant | VB.NET supports local static variables. They had to implement it to stay compatible with vb. The amount of code it generates is enormous, local statics are difficult because they are not thread-safe. Fields are not thread-safe either, but everybody expects that. | |
| May 29, 2012 at 8:48 | answer | added | Dennis | timeline score: 42 | |
| May 29, 2012 at 8:43 | vote | accept | Kartik Patel | ||
| May 29, 2012 at 8:43 | |||||
| May 29, 2012 at 8:39 | history | edited | Kartik Patel | CC BY-SA 3.0 | added 422 characters in body |
| May 29, 2012 at 8:36 | answer | added | dowhilefor | timeline score: 10 | |
| May 29, 2012 at 8:28 | comment | added | Kartik Patel | Like we declare in class static int i=5 | |
| May 29, 2012 at 8:26 | comment | added | Dennis | May be you mean "static field"? | |
| May 29, 2012 at 8:24 | answer | added | Pranay Rana | timeline score: 22 | |
| May 29, 2012 at 8:22 | history | asked | Kartik Patel | CC BY-SA 3.0 |