Releases unmanaged resources and, optionally, managed resources.
protected: override void Dispose(bool disposing);
protected override void Dispose (bool disposing);
override this.Dispose : bool -> unit
Protected Overrides Sub Dispose (disposing As Boolean)
true to release both unmanaged and managed resources;
false to release only unmanaged resources.