Beispiel #1
0
        private long WriteDic(SystemDic setup)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            IntPtr intPtr = Marshal.AllocHGlobal(MockIteratorMapping.FillError <ImporterReaderMapper>());

            try
            {
                int num = setup._0001(-1, ComparatorConsumer.serviceDic, intPtr);
                switch (num)
                {
                case -1072875802:
                    return(0L);

                default:
                    Marshal.ThrowExceptionForHR(num);
                    break;

                case 0:
                    break;
                }
                return((long)MockIteratorMapping.RunError <ImporterReaderMapper>(intPtr)._0001() * _SystemInstance._0004() / 10000000);
            }
            finally
            {
                ImporterReaderMapper.ViewError(intPtr);
                Marshal.FreeHGlobal(intPtr);
            }
        }
        public object _0001()
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            VarEnum varEnum = this._0001();

            switch (varEnum)
            {
            case VarEnum.VT_I1:
                return(_ProcessDic);

            case VarEnum.VT_I2:
                return(baseDic);

            case VarEnum.VT_I4:
                return(_ProccesorDic);

            case VarEnum.VT_I8:
                return(accountDic);

            case VarEnum.VT_INT:
                return(baseDic);

            case VarEnum.VT_UI4:
                return(_AdapterDic);

            case VarEnum.VT_UI8:
                return(singletonDic);

            case VarEnum.VT_LPWSTR:
                return(Marshal.PtrToStringUni(exporterDic));

            case VarEnum.VT_BLOB:
            case (VarEnum)4113:
                return(VisitError());

            case VarEnum.VT_CLSID:
                return(MockIteratorMapping.RunError <Guid>(exporterDic));

            case VarEnum.VT_BOOL:
                switch (_ProductDic)
                {
                case -1:
                    return(true);

                case 0:
                    return(false);

                default:
                    throw new NotSupportedException("PropVariant VT_BOOL must be either -1 or 0");
                }

            default:
                throw new NotImplementedException("PropVariant " + varEnum);
            }
        }