public void Dispose() { if (RegisteredPeripheral != null) { RegisteredPeripheral.Dispose(); } }
public void Dispose() { RegisteredPeripheral?.Dispose(); }