Example #1
0
        private void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    port.Dispose();
                }

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

                disposed = true;
            }
        }