SystemExt/Maybe{T}.cs
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .
public void Dispose()
        {
            if (!this.HasValue)
                return;
            var disposable = this.Value as IDisposable;
            if (disposable == null)
                return;
            disposable.Dispose();
        }
public void Dispose ( ) { if ( ! this . HasValue ) return ; var disposable = this . Value as IDisposable ; if ( disposable == null ) return ; disposable . Dispose ( ) ; }
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Performs application - defined tasks associated with freeing releasing or resetting unmanaged resources .
// If we have no value then we have nothing to do here. // If we are not an IDisposable the we can't dispose resources.