For sure it’s not a good prartice. The caller should decide when he is finished using the IDisposable object, not an object itself.
For sure it’s not a good prartice. The caller should decide when he is finished using the IDisposable object, not an object itself.