// Token: 0x06002806 RID: 10246 RVA: 0x000BB6A8 File Offset: 0x000B98A8
        private List <AutomationPeer> GetChildrenAutomationPeer(Visual parent)
        {
            Invariant.Assert(parent != null);
            List <AutomationPeer> children = null;

            StatusBarAutomationPeer.iterate(parent, delegate(AutomationPeer peer)
            {
                if (children == null)
                {
                    children = new List <AutomationPeer>();
                }
                children.Add(peer);
                return(false);
            });
            return(children);
        }
        // Token: 0x06002807 RID: 10247 RVA: 0x000BB6E4 File Offset: 0x000B98E4
        private static bool iterate(Visual parent, StatusBarAutomationPeer.IteratorCallback callback)
        {
            bool flag = false;
            int  internalVisualChildrenCount = parent.InternalVisualChildrenCount;
            int  num = 0;

            while (num < internalVisualChildrenCount && !flag)
            {
                Visual         visual = parent.InternalGetVisualChild(num);
                AutomationPeer peer;
                if (visual != null && visual.CheckFlagsAnd(VisualFlags.IsUIElement) && (peer = UIElementAutomationPeer.CreatePeerForElement((UIElement)visual)) != null)
                {
                    flag = callback(peer);
                }
                else
                {
                    flag = StatusBarAutomationPeer.iterate(visual, callback);
                }
                num++;
            }
            return(flag);
        }