Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
namespace EnumerableExtensions
{
public interface IDisposableEnumerable<T> : IDisposable, IEnumerable<T> { }
public static class EnumerableExtensions
{
public static IDisposableEnumerable<T> Disposer<T>(this IEnumerable<T> seq) where T : IDisposable