I'd like to create a class of the following type
public class EnumerableDisposer<IEnumerable<IDisposable>>
But it won't let me declare it this way. I've also tried:
public class EnumerableDisposer<T> : IDisposable where T : IEnumerable<J> where J : IDisposable
But the compiler tells me that the type/namespace J could not be found.
What is it I have to do to create this class?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With