public void ProcessPointerCapture(int pointerId)
        {
            bool flag = this.m_PointerCapture[pointerId] == this.m_PendingPointerCapture[pointerId];

            if (!flag)
            {
                bool flag2 = this.m_PointerCapture[pointerId] != null;
                if (flag2)
                {
                    using (PointerCaptureOutEvent pooled = PointerCaptureEventBase <PointerCaptureOutEvent> .GetPooled(this.m_PointerCapture[pointerId], this.m_PendingPointerCapture[pointerId], pointerId))
                    {
                        this.m_PointerCapture[pointerId].SendEvent(pooled);
                    }
                    bool flag3 = pointerId == PointerId.mousePointerId;
                    if (flag3)
                    {
                        using (MouseCaptureOutEvent pooled2 = PointerCaptureEventBase <MouseCaptureOutEvent> .GetPooled(this.m_PointerCapture[pointerId], this.m_PendingPointerCapture[pointerId], pointerId))
                        {
                            this.m_PointerCapture[pointerId].SendEvent(pooled2);
                        }
                    }
                }
                bool flag4 = this.m_PendingPointerCapture[pointerId] != null;
                if (flag4)
                {
                    using (PointerCaptureEvent pooled3 = PointerCaptureEventBase <PointerCaptureEvent> .GetPooled(this.m_PendingPointerCapture[pointerId], this.m_PointerCapture[pointerId], pointerId))
                    {
                        this.m_PendingPointerCapture[pointerId].SendEvent(pooled3);
                    }
                    bool flag5 = pointerId == PointerId.mousePointerId;
                    if (flag5)
                    {
                        using (MouseCaptureEvent pooled4 = PointerCaptureEventBase <MouseCaptureEvent> .GetPooled(this.m_PendingPointerCapture[pointerId], this.m_PointerCapture[pointerId], pointerId))
                        {
                            this.m_PendingPointerCapture[pointerId].SendEvent(pooled4);
                        }
                    }
                }
                this.m_PointerCapture[pointerId] = this.m_PendingPointerCapture[pointerId];
            }
        }
 public static T GetPooled(IEventHandler target, IEventHandler relatedTarget)
 {
     return(PointerCaptureEventBase <T> .GetPooled(target, relatedTarget, 0));
 }