Timeline for private or protected class properties
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 2, 2017 at 2:12 | comment | added | ErichBSchulz | cool thanks for the advice! PR: here | |
Jan 1, 2017 at 21:06 | vote | accept | ErichBSchulz | ||
Jan 1, 2017 at 15:59 | comment | added | Coleman | Yea but in this case I think making the variable protected really wouldn't hurt anything. Go ahead and submit the PR and save the Reflection in your back pocket, you'll probably find a use for it later. | |
Jan 1, 2017 at 8:18 | comment | added | ErichBSchulz | mmm - hard to know which to prefer of those 2 methods - wasn't aware of reflection technique - it seems like a reasonable approach for unit testing where you're allowed to do naughty things with mocks? | |
Jan 1, 2017 at 3:44 | history | answered | Coleman | CC BY-SA 3.0 |