[Mono-dev] OracleClient.Oci and GC
Jonathan Pryor
jonpryor at vt.edu
Mon Aug 25 18:00:46 UTC 2014
Idiomatic IDisposable implementation is slightly different from what you have:
http://msdn.microsoft.com/en-us/library/system.idisposable(v=vs.110).aspx
On Aug 25, 2014, at 11:08 AM, Neale Ferguson <NealeFerguson at verizon.net> wrote:
> I implemented a Dispose method for OracleParameter:
>
> ~OracleParameter ()
> {
> Dispose(false);
> }
>
> public void Dispose ()
> {
> Dispose (true);
You should call GC.SuppressFinalize(this) from Dispose(), not Dispose(bool).
- Jon
More information about the Mono-devel-list
mailing list