Exemplo n.º 1
0
        internal void SetBitmapSource(BitmapSource source)
        {
            object requestLock = CaptureRequest.requestLock;
            bool   flag        = false;

            try
            {
                CaptureRequest.\u200E‎‭‎‌​​‍‏‮‍‫‭​‍‌‎​‏‭‍‍‏‌‎‮(requestLock, ref flag);
label_2:
                int num1 = 1912340224;
                while (true)
                {
                    int  num2 = 1361742053;
                    uint num3;
                    switch ((num3 = (uint)(num1 ^ num2)) % 6U)
                    {
                    case 0:
                        this.BitmapSource = source;
                        num1 = (int)num3 * -1964525558 ^ -1057251735;
                        continue;

                    case 1:
                        num1 = (int)num3 * 1113526224 ^ 1700198605;
                        continue;

                    case 2:
                        num1 = (int)num3 * 747534580 ^ -172286084;
                        continue;

                    case 3:
                        goto label_12;

                    case 4:
                        goto label_2;

                    case 5:
                        this.CaptureState = CaptureState.Captured;
                        num1 = (int)num3 * 1198027058 ^ -1059467136;
                        continue;

                    default:
                        goto label_8;
                    }
                }
label_8:
                return;

                label_12 :;
            }
            finally
            {
                if (flag)
                {
                    label_10 :
                    int num1 = 1504834324;
                    while (true)
                    {
                        int  num2 = 1361742053;
                        uint num3;
                        switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                        {
                        case 0:
                            goto label_10;

                        case 1:
                            CaptureRequest.\u206B‎‬‬‫‌‎‏‌‍‭‏‌​‬‫‎‮‍‮‮‭‬‮‮(requestLock);
                            num1 = (int)num3 * 689200849 ^ 45613403;
                            continue;

                        case 3:
                            num1 = (int)num3 * -979311286 ^ -1152627123;
                            continue;

                        default:
                            goto label_15;
                        }
                    }
                }
                label_15 :;
            }
        }
Exemplo n.º 2
0
        internal CaptureState SetState(CaptureState newState)
        {
            object requestLock = CaptureRequest.requestLock;
            bool   flag        = false;

            try
            {
                CaptureRequest.\u200E‎‭‎‌​​‍‏‮‍‫‭​‍‌‎​‏‭‍‍‏‌‎‮(requestLock, ref flag);
                this.CaptureState = newState;
label_2:
                int num1 = -1152919784;
                while (true)
                {
                    int  num2 = -1386243306;
                    uint num3;
                    switch ((num3 = (uint)(num1 ^ num2)) % 3U)
                    {
                    case 0:
                        goto label_2;

                    case 1:
                        num1 = (int)num3 * -1368736631 ^ 829903489;
                        continue;

                    default:
                        goto label_11;
                    }
                }
            }
            finally
            {
                if (flag)
                {
label_6:
                    int num1 = -1815800420;
                    while (true)
                    {
                        int  num2 = -1386243306;
                        uint num3;
                        switch ((num3 = (uint)(num1 ^ num2)) % 4U)
                        {
                        case 1:
                            num1 = (int)num3 * 1915298095 ^ -49269895;
                            continue;

                        case 2:
                            CaptureRequest.\u206B‎‬‬‫‌‎‏‌‍‭‏‌​‬‫‎‮‍‮‮‭‬‮‮(requestLock);
                            num1 = (int)num3 * -1951908889 ^ 1696698917;
                            continue;

                        case 3:
                            goto label_6;

                        default:
                            goto label_10;
                        }
                    }
                }
                label_10 :;
            }
            label_11 :
            CaptureState captureState = newState;

label_12:
            int num4 = -2008930255;

            while (true)
            {
                int  num1 = -1386243306;
                uint num2;
                switch ((num2 = (uint)(num4 ^ num1)) % 3U)
                {
                case 0:
                    goto label_12;

                case 2:
                    num4 = (int)num2 * 964246316 ^ 317485561;
                    continue;

                default:
                    goto label_15;
                }
            }
label_15:
            return(captureState);
        }