private void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { port.Dispose(); } disposed = true; } }
private void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { if (timer != null) { timer.Dispose(); } if (port != null) { port.Dispose(); } } disposed = true; } }