public void Abort() { Props?.Dispose(); Vehicle?.DeleteCompletely(); HerbieHandler.RemoveHerbie(this); }
private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { Backdrop.Dispose(); Props.Dispose(); } disposedValue = true; } }