src/packages/EmbedIO/ModuleGroup.cs
/// <summary>
/// Releases unmanaged and - optionally - managed resources.
/// </summary>
/// <param name="disposing"><see langword="true"/> to release both managed and unmanaged resources;
/// <see langword="false"/> 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;
            _modules.Dispose();
            var disposables = SharedItems.Values.OfType<IDisposable>();
            SharedItems.Clear();
            foreach (var disposable in disposables)
                disposable.Dispose();
        }
protected virtual void Dispose ( bool disposing ) { if ( ! disposing ) return ; _modules . Dispose ( ) ; var disposables = SharedItems . Values . OfType < IDisposable > ( ) ; SharedItems . Clear ( ) ; foreach ( var disposable in disposables ) 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 .