Timeline for Proper use of the IDisposable interface
Current License: CC BY-SA 2.5
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 11, 2009 at 22:27 | comment | added | Michael Burr | 1) the code fragment is just example code, so I'm just pointing out that there may be a side-effect that is easy to overlook; 2) private fields are often the target of a getter property/method - maybe too much (getter/setters are considered by some people to be a bit of an anti-pattern). | |
| Feb 11, 2009 at 21:20 | comment | added | mqp | They're private fields, so I think it's fair to assume the OP isn't giving out references to them. | |
| Feb 11, 2009 at 18:45 | history | answered | Michael Burr | CC BY-SA 2.5 |