[Mono-dev] OracleClient.Oci and GC

Jonathan Pryor jonpryor at vt.edu
Tue Aug 26 05:09:35 UTC 2014


On Aug 25, 2014, at 2:05 PM, Neale Ferguson <NealeFerguson at verizon.net> wrote:
> Do you mean mine not having protected virtual? 

Dispose(bool) doesn't need to be `protected virtual` unless you plan on supporting inheritance.

Rephrased: if your type is sealed, it doesn't need to be `protected virtual`. If your type *isn't* sealed, your type probably should provide a `protected virtual void Dispose(bool disposing)`.

 - Jon



More information about the Mono-devel-list mailing list