Skip to content

Michael Bowersox's Blog

Menu

  • Photography
  • Resume
  • Contact

.NET

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 them up.  Another good use that I’ve come across is

Michael Bowersox March 11, 2014March 11, 2014 .NET, C# No Comments Read more

Using a Custom IDataReader to Stream Data Into a Database

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 use a SqlDataReader as a parameter in the WriteToServer method

Michael Bowersox December 22, 2011March 10, 2014 .NET, C#, SQL Server No Comments Read more

Streaming Data Between Databases using SqlBulkCopy and SqlDataReader

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 object implements the IDataReader interface, it is a perfect candidate

Michael Bowersox December 1, 2011March 10, 2014 .NET, C#, SQL Server No Comments Read more

Converting From WPF Foreground to Windows Forms ForeColor

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 Windows Forms Host control.  Once I started investigating, I

Michael Bowersox February 18, 2011February 23, 2011 .NET, C#, WPF No Comments Read more

Semaphores in C#

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 knew this was the right approach, but I have never

Michael Bowersox January 16, 2011March 20, 2011 .NET, C# 1 Comment Read more

RSS

   

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tags

.NET Apple ASP.NET ASP.NET AJAX Asynchronous Computation Expressions C# Charting Cocoa Common Table Expressions F# Feature Receivers Objective-C Page Methods SharePoint SharePoint CustomActions SharePoint User Profiles SharePoint Web Parts SharePoint Web Services SQL Server Themes Threading Visual Studio WPF WSPBuilder XCode

Web Comics

  • Cyanide & Happiness
  • xkcd
Copyright © 2023 Michael Bowersox's Blog. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.