osu.Framework/Graphics/Containers/CompositeDrawable.cs
/// <summary>
/// Loads a <see cref="Drawable"/> child. This will not throw in the event of the load being cancelled.
/// </summary>
/// <param name="child">The <see cref="Drawable"/> child to load.</param>
/// <exception cref="DependencyInjectionException">When a user error occurred during dependency injection.</exception>
Loads a  child. This will not throw in the event of the load being cancelled.
Loads a child . This will not throw in the event of the load being cancelled .
private void loadChild(Drawable child)
        {
            try
            {
                if (IsDisposed)
                    throw new ObjectDisposedException(ToString(), "Disposed Drawables may not have children added.");
                child.Load(Clock, Dependencies);
                child.Parent = this;
            }
            catch (OperationCanceledException)
            {
            }
            catch (AggregateException ae)
            {
                foreach (var e in ae.Flatten().InnerExceptions)
                {
                    if (e is OperationCanceledException)
                        continue;
                    throw e;
                }
            }
        }
private void loadChild ( Drawable child ) { try { if ( IsDisposed ) throw new ObjectDisposedException ( ToString ( ) , " " ) ; child . Load ( Clock , Dependencies ) ; child . Parent = this ; } catch ( OperationCanceledException ) { } catch ( AggregateException ae ) { foreach ( var e in ae . Flatten ( ) . InnerExceptions ) { if ( e is OperationCanceledException ) continue ; throw e ; } } }
Loads a  child.
Loads a child .
When a user error occurred during dependency injection.
When a user error occurred during dependency injection .
child
Drawable
The  child to load.
The child to load .