src/packages/EmbedIO/Utilities/DisposableComponentCollection`1.cs
/// <summary>
/// Releases unmanaged and - optionally - managed resources.
/// </summary>
/// <param name="disposing">
/// <see langword="true"/> to release both managed and unmanaged resources; <see langword="true"/> to release only unmanaged resources.
/// </param>
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
                return;
            foreach (var component in this)
            {
                if (component is IDisposable disposable)
                    disposable.Dispose();
            }
        }
protected virtual void Dispose ( bool disposing ) { if ( ! disposing ) return ; foreach ( var component in this ) { if ( component is IDisposable disposable ) disposable . Dispose ( ) ; } }
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
disposing
bool
to release both managed and unmanaged resources;  to release only unmanaged resources.
to release both managed and unmanaged resources ; to release only unmanaged resources .