Timeline for Lazy loaded property readability
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2014 at 23:43 | history | edited | 200_success |
edited tags
|
|
Jan 14, 2013 at 19:12 | answer | added | svick | timeline score: 7 | |
Jan 12, 2013 at 13:28 | comment | added | Şafak Gür |
Even with Lazy<T> , I still tend to use this approach in most cases. Choose whichever feels simpler to you and don't worry about confusing other people. I totally agree with @dreza here: That piece of code is clear enough for someone who saw something like that for the first time to get it in one minute.
|
|
Jan 12, 2013 at 4:39 | history | tweeted | twitter.com/#!/StackCodeReview/status/289954713217159168 | ||
Jan 11, 2013 at 22:22 | vote | accept | Dan Is Fiddling By Firelight | ||
Jan 11, 2013 at 20:02 | comment | added | Dan Is Fiddling By Firelight | @dreza Thanks for pointing out Lazy<>; most of my C# work has been with 3.5 or earlier and this is the first I've seen it. | |
Jan 11, 2013 at 19:57 | answer | added | Tilak | timeline score: 16 | |
Jan 11, 2013 at 19:52 | comment | added | dreza | That and using Lazy<> is how I tend to do my properties when wanting something like this. Just seems more consise to me. As for confusing others? Possibly but it might also teach them something... | |
Jan 11, 2013 at 19:41 | history | asked | Dan Is Fiddling By Firelight | CC BY-SA 3.0 |