|
|
|
|
|
by tigershark
3652 days ago
|
|
You are doing it wrong if you want to use a finalizer / destructor.
The right thing to do is to have the container manage the lifecycle for disposable resources.
In case they are transient then it's up to you to remember about "using" or "Dispose".
I can't see how you can dispose twice something by error if you implemented correctly the disposable pattern. |
|