public void Dispose() { lock (SyncObj) { comPort.Dispose(); } }
public void Dispose() { if (comPort != null) { comPort.Dispose(); } comPort = null; }
public void Dispose() { Finish(); if (comPort != null) { comPort.Dispose(); } comPort = null; }