// Token: 0x0600288A RID: 10378 RVA: 0x000BCB4C File Offset: 0x000BAD4C
        internal override IDisposable UpdateChildren()
        {
            TreeViewDataItemAutomationPeer treeViewDataItemAutomationPeer = base.EventsSource as TreeViewDataItemAutomationPeer;

            if (treeViewDataItemAutomationPeer != null)
            {
                treeViewDataItemAutomationPeer.UpdateChildrenInternal(5);
            }
            else
            {
                base.UpdateChildrenInternal(5);
            }
            base.WeakRefElementProxyStorage.PurgeWeakRefCollection();
            return(null);
        }
        //
        override internal void UpdateChildren()
        {
            // To ensure that the Updation of children should be initiated from DataPeer so as to have the right parent value stored for children
            TreeViewDataItemAutomationPeer dataPeer = EventsSource as TreeViewDataItemAutomationPeer;

            if (dataPeer != null)
            {
                dataPeer.UpdateChildrenInternal(AutomationInteropProvider.ItemsInvalidateLimit);
            }
            else
            {
                UpdateChildrenInternal(AutomationInteropProvider.ItemsInvalidateLimit);
            }
            WeakRefElementProxyStorage.PurgeWeakRefCollection();
        }