private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { if (Highlighter != null) { Highlighter.Dispose(); Highlighter = null; } } disposedValue = true; } }
/// <summary> /// Constructor /// </summary> private ClearOverlayDriver() { Highlighter = new OverlayHighlighter(); }