src/Misc/EFTools/XmlCore/Core/Context/EditingContext.cs
/// <summary>
///     We implement IDisposable so that the editing context can destroy us when it
///     shuts down.
/// </summary>
We implement IDisposable so that the editing context can destroy us when it
shuts down.
We implement IDisposable so that the editing context can destroy us when it shuts down .
void IDisposable.Dispose()
            {
                if (_services != null)
                {
                    var services = _services;
                    try
                    {
                        foreach (var value in services.Values)
                        {
                            var d = value as IDisposable;
                            if (d != null)
                            {
                                d.Dispose();
                            }
                        }
                    }
                    finally
                    {
                        _services = null;
                    }
                }
            }
void IDisposable . Dispose ( ) { if ( _services != null ) { var services = _services ; try { foreach ( var value in services . Values ) { var d = value as IDisposable ; if ( d != null ) { d . Dispose ( ) ; } } } finally { _services = null ; } } }
We implement IDisposable so that the editing context can destroy us when it
shuts down.
We implement IDisposable so that the editing context can destroy us when it shuts down .