This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |