Using IDisposable to Create a Simple Code Timer
The IDisposable interface is typically implemented by objects that are using resources that need to be released in a timely manner rather than waiting for the garbage collector to clean…
The IDisposable interface is typically implemented by objects that are using resources that need to be released in a timely manner rather than waiting for the garbage collector to clean…
In a previous post, I discussed how to use the SqlBulkCopy class along with a SqlDataReader to quickly stream data from one database to another. The reason that you can…
One little known fact about SqlBulkCopy is that not only can the WriteToServer method use a DataTable, but it can also use any object that implements IDataReader. Since the SqlDataReader…
I recently had the need to read the foreground color of a WPF control to assign to the foreground color of a Windows Forms control that I had hosted in…
A short while ago I had a need to limit simultaneous requests to a web service from a multi-threaded application to prevent timeouts. I learned about semaphores in school and…