Example #1
0
        public void Write <T>(T value)
        {
            BinaryWriter binaryWriter = this.stream as BinaryWriter;

            while (true)
            {
IL_1FB:
                uint arg_18E_0 = 3721335647u;
                while (true)
                {
                    uint num;
                    switch ((num = (arg_18E_0 ^ 3850814296u)) % 24u)
                    {
                    case 0u:
                        return;

                    case 1u:
                        goto IL_107;

                    case 2u:
                        goto IL_14F;

                    case 3u:
                        this.Flush();
                        arg_18E_0 = (num * 825481829u ^ 3064178000u);
                        continue;

                    case 4u:
                        goto IL_11F;

                    case 5u:
                        goto IL_137;

                    case 6u:
                        arg_18E_0 = (num * 4014390826u ^ 3274484134u);
                        continue;

                    case 7u:
                    {
                        TypeCode typeCode;
                        switch (typeCode)
                        {
                        case TypeCode.SByte:
                            goto IL_234;

                        case TypeCode.Byte:
                            goto IL_107;

                        case TypeCode.Int16:
                            goto IL_94;

                        case TypeCode.UInt16:
                            goto IL_20F;

                        case TypeCode.Int32:
                            goto IL_11F;

                        case TypeCode.UInt32:
                            goto IL_137;

                        case TypeCode.Int64:
                            goto IL_222;

                        case TypeCode.UInt64:
                            goto IL_247;

                        case TypeCode.Single:
                            goto IL_14F;

                        default:
                            arg_18E_0 = (num * 2762671822u ^ 313630772u);
                            continue;
                        }
                        break;
                    }

                    case 8u:
                        return;

                    case 9u:
                        goto IL_204;

                    case 10u:
                        goto IL_20F;

                    case 11u:
                        return;

                    case 12u:
                    {
                        TypeCode typeCode = AuthPacket.smethod_19(AuthPacket.smethod_14(typeof(T).TypeHandle));
                        arg_18E_0 = 2367109391u;
                        continue;
                    }

                    case 13u:
                        goto IL_94;

                    case 14u:
                        goto IL_222;

                    case 15u:
                    {
                        byte[] byte_ = value as byte[];
                        AuthPacket.smethod_39(binaryWriter, byte_);
                        arg_18E_0 = (num * 3201777706u ^ 281211471u);
                        continue;
                    }

                    case 16u:
                        goto IL_234;

                    case 18u:
                        arg_18E_0 = ((!AuthPacket.smethod_38(AuthPacket.smethod_14(typeof(T).TypeHandle), AuthPacket.smethod_14(typeof(byte[]).TypeHandle))) ? 2322063593u : 3547962235u);
                        continue;

                    case 19u:
                        goto IL_1FB;

                    case 20u:
                        goto IL_247;

                    case 21u:
                        return;

                    case 22u:
                        return;

                    case 23u:
                        arg_18E_0 = (((binaryWriter != null) ? 3400374826u : 2994678575u) ^ num * 3971327378u);
                        continue;
                    }
                    goto Block_4;
IL_94:
                    AuthPacket.smethod_25(binaryWriter, AuthPacket.smethod_24(value));
                    arg_18E_0 = 2155509429u;
                    continue;
IL_107:
                    AuthPacket.smethod_23(binaryWriter, AuthPacket.smethod_22(value));
                    arg_18E_0 = 3704779824u;
                    continue;
IL_11F:
                    AuthPacket.smethod_29(binaryWriter, AuthPacket.smethod_28(value));
                    arg_18E_0 = 3309188710u;
                    continue;
IL_137:
                    AuthPacket.smethod_31(binaryWriter, AuthPacket.smethod_30(value));
                    arg_18E_0 = 2848762291u;
                    continue;
IL_14F:
                    AuthPacket.smethod_37(binaryWriter, AuthPacket.smethod_36(value));
                    arg_18E_0 = 2335994440u;
                }
            }
Block_4:
            return;

IL_204:
            throw AuthPacket.smethod_10("");
IL_20F:
            AuthPacket.smethod_27(binaryWriter, AuthPacket.smethod_26(value));
            return;

IL_222:
            AuthPacket.smethod_33(binaryWriter, AuthPacket.smethod_32(value));
            return;

IL_234:
            AuthPacket.smethod_21(binaryWriter, AuthPacket.smethod_20(value));
            return;

IL_247:
            AuthPacket.smethod_35(binaryWriter, AuthPacket.smethod_34(value));
        }