I'm wrapping some native code that has some manual resource handling. I want my C# wrapper to handle this without passing the responsibility on to the clients. Is this possible, or will I inevitably have to implement IDisposable and pass on the responsibility to client code?
ie Is it possible to even write classes that handle managed resources automatically?
What if I say that deterministic handling of these resources is not a concern, and that I'm only concerned that they are released safely; I'm happy to let the GC schedule their release via finalizers.