V1/Toolbox.NETMF.Hardware.InfraredRX/InfraredReceiverBase.cs
/// <summary>
/// Disposal of the receiver, as well as local resources
/// </summary>
/// <param name="disposing"></param>
Disposal of the receiver, as well as local resources
Disposal of the receiver as well as local resources
private void Dispose(bool disposing)
        {
            if (!this._disposed)
            {
                if (disposing)
                {
                    this.Status = InfraredReceiverBase.StatusDisabled;
                    this._triggerPort.OnInterrupt -= this.TriggerOnInterrupt;
                    this._triggerPort.Dispose();
                    this._triggerPort = null;
                    this._timer.Change(
                        Timeout.Infinite,
                        Timeout.Infinite);
                    this._timer = null;
                }
                this._disposed = true;
            }
        }
private void Dispose ( bool disposing ) { if ( ! this . _disposed ) { if ( disposing ) { this . Status = InfraredReceiverBase . StatusDisabled ; this . _triggerPort . OnInterrupt -= this . TriggerOnInterrupt ; this . _triggerPort . Dispose ( ) ; this . _triggerPort = null ; this . _timer . Change ( Timeout . Infinite , Timeout . Infinite ) ; this . _timer = null ; } this . _disposed = true ; } }
Disposal of the receiver, as well as local resources
Disposal of the receiver as well as local resources
//disable the receiver //release the port //release the timer
disposing
bool
None