Growing IDisposable Guided By Tests

My previous post looked at the limitations of the .NET Garbage Collection process. The right way to mitigate these limitations is by allowing an objects owner to call Dispose() to release resources on demand rather than having to wait for the Finalization Queue to run. In this post I will grow a worked example that […]

Simple, Elegant and Creative – I love this solution

I needed to have all of the text selected when a user clicked on a text box so it would be easy to overwrite the contents without having to hit Ctrl-A. The problem was that I just couldn’t get this code working: private void myTextbox_Enter(object sender, EventArgs e) { selectedFolderPath.SelectAll(); } I could call .SelectAll() […]