Skip to content

Instantly share code, notes, and snippets.

@rcollette
rcollette / gist:6252733
Created August 16, 2013 19:19
Performance test code comparing IDataReader disposal prior to all records being read, using IDbCommand.Cancel() and without using Cancel()
namespace DataReaderDisposeCancelTest
{
using System;
using System.Configuration;
using System.Data;
using System.Data.Common;
internal class Program
{
private const int iterations = 50;