src/Runtime/Runtime/System.Windows/ResourceDictionary.cs
/// <summary>
///     Mark the begining of the Init phase
/// </summary>
/// <remarks>
///     BeginInit and EndInit follow a transaction model. BeginInit marks the
///     dictionary uninitialized and EndInit marks it initialized.
/// </remarks>
Mark the begining of the Init phase
Mark the begining of the Init phase
public void BeginInit()
        {
            if (this.IsInitializePending)
            {
                throw new InvalidOperationException("Cannot have nested BeginInit calls on the same instance.");
            }
            this.IsInitializePending = true;
            this.IsInitialized = false;
        }
public void BeginInit ( ) { if ( this . IsInitializePending ) { throw new InvalidOperationException ( " " ) ; } this . IsInitializePending = true ; this . IsInitialized = false ; }
Mark the begining of the Init phase
Mark the begining of the Init phase
// Nested BeginInits on the same instance aren't permitted
remarks
BeginInit and EndInit follow a transaction model. BeginInit marks the
dictionary uninitialized and EndInit marks it initialized.
BeginInit and EndInit follow a transaction model . BeginInit marks the dictionary uninitialized and EndInit marks it initialized .