示例#1
0
    // Token: 0x06000EE4 RID: 3812 RVA: 0x00045DAC File Offset: 0x00043FAC
    public override bool vmethod_0(JToken jtoken_0, JToken jtoken_1)
    {
        Enum10 @enum = base.method_0();

        if (@enum == (Enum10)8)
        {
            using (List <Class167> .Enumerator enumerator = this.method_2().GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    if (!enumerator.Current.vmethod_0(jtoken_0, jtoken_1))
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }
        if (@enum != (Enum10)9)
        {
            throw new ArgumentOutOfRangeException();
        }
        using (List <Class167> .Enumerator enumerator = this.method_2().GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                if (enumerator.Current.vmethod_0(jtoken_0, jtoken_1))
                {
                    return(true);
                }
            }
        }
        return(false);
    }
示例#2
0
        private bool method_15()
        {
            switch (this.enum10_0)
            {
            case Enum10.CodeWScopeStart:
                base.SetToken(JsonToken.PropertyName, "$code");
                this.enum10_0 = Enum10.CodeWScopeCode;
                return(true);

            case Enum10.CodeWScopeCode:
                this.method_30();
                base.SetToken(JsonToken.String, this.method_24());
                this.enum10_0 = Enum10.CodeWScopeScope;
                return(true);

            case Enum10.CodeWScopeScope:
                if (base.CurrentState != JsonReader.State.PostValue)
                {
                    base.SetToken(JsonToken.StartObject);
                    this.enum10_0 = Enum10.CodeWScopeScopeObject;
                    Class69 class2 = new Class69(Enum11.Object);
                    this.method_19(class2);
                    class2.int_0 = this.method_30();
                    return(true);
                }
                base.SetToken(JsonToken.PropertyName, "$scope");
                return(true);

            case Enum10.CodeWScopeScopeObject:
                bool flag;
                if ((flag = this.method_17()) && (this.JsonToken_0 == JsonToken.EndObject))
                {
                    this.enum10_0 = Enum10.CodeWScopeScopeEnd;
                }
                return(flag);

            case Enum10.CodeWScopeScopeEnd:
                base.SetToken(JsonToken.EndObject);
                this.enum10_0 = Enum10.Normal;
                return(true);
            }
            throw new ArgumentOutOfRangeException();
        }
示例#3
0
        private bool method_16()
        {
            switch (base.CurrentState)
            {
            case JsonReader.State.Property:
                if (this.enum10_0 != Enum10.ReferenceRef)
                {
                    if (this.enum10_0 != Enum10.ReferenceId)
                    {
                        throw JsonReaderException.smethod_1(this, "Unexpected state when reading BSON reference: " + this.enum10_0);
                    }
                    base.SetToken(JsonToken.Bytes, this.method_34(12));
                    return(true);
                }
                base.SetToken(JsonToken.String, this.method_24());
                return(true);

            case JsonReader.State.ObjectStart:
                base.SetToken(JsonToken.PropertyName, "$ref");
                this.enum10_0 = Enum10.ReferenceRef;
                return(true);

            case JsonReader.State.PostValue:
                if (this.enum10_0 == Enum10.ReferenceRef)
                {
                    base.SetToken(JsonToken.PropertyName, "$id");
                    this.enum10_0 = Enum10.ReferenceId;
                    return(true);
                }
                if (this.enum10_0 != Enum10.ReferenceId)
                {
                    throw JsonReaderException.smethod_1(this, "Unexpected state when reading BSON reference: " + this.enum10_0);
                }
                base.SetToken(JsonToken.EndObject);
                this.enum10_0 = Enum10.Normal;
                return(true);
            }
            throw JsonReaderException.smethod_1(this, "Unexpected state when reading BSON reference: " + base.CurrentState);
        }
示例#4
0
 public static extern void alSourcef(IntPtr intptr_0, Enum10 enum10_0, float float_0);
示例#5
0
        private void method_21(Enum11 enum11_1)
        {
            DateTime time;
            DateTime time2;

            switch (enum11_1)
            {
            case Enum11.Number:
            {
                double num = this.method_29();
                if (base.floatParseHandling_0 != FloatParseHandling.Decimal)
                {
                    base.SetToken(JsonToken.Float, num);
                    return;
                }
                base.SetToken(JsonToken.Float, Convert.ToDecimal(num, CultureInfo.InvariantCulture));
                return;
            }

            case Enum11.String:
            case Enum11.Symbol:
                base.SetToken(JsonToken.String, this.method_24());
                return;

            case Enum11.Object:
            {
                base.SetToken(JsonToken.StartObject);
                Class69 class2 = new Class69(Enum11.Object);
                this.method_19(class2);
                class2.int_0 = this.method_30();
                return;
            }

            case Enum11.Array:
            {
                base.SetToken(JsonToken.StartArray);
                Class69 class3 = new Class69(Enum11.Array);
                this.method_19(class3);
                class3.int_0 = this.method_30();
                return;
            }

            case Enum11.Binary:
                base.SetToken(JsonToken.Bytes, this.method_22());
                return;

            case Enum11.Undefined:
                base.SetToken(JsonToken.Undefined);
                return;

            case Enum11.Oid:
            {
                byte[] buffer = this.method_34(12);
                base.SetToken(JsonToken.Bytes, buffer);
                return;
            }

            case Enum11.Boolean:
            {
                bool flag = Convert.ToBoolean(this.method_20());
                base.SetToken(JsonToken.Boolean, flag);
                return;
            }

            case Enum11.Date:
                time = Class184.smethod_11(this.method_31());
                switch (this.DateTimeKindHandling)
                {
                case DateTimeKind.Unspecified:
                    time2 = DateTime.SpecifyKind(time, DateTimeKind.Unspecified);
                    goto Label_017F;

                case DateTimeKind.Local:
                    time2 = time.ToLocalTime();
                    goto Label_017F;
                }
                break;

            case Enum11.Null:
                base.SetToken(JsonToken.Null);
                return;

            case Enum11.Regex:
            {
                string str  = this.method_23();
                string str2 = this.method_23();
                string str3 = "/" + str + "/" + str2;
                base.SetToken(JsonToken.String, str3);
                return;
            }

            case Enum11.Reference:
                base.SetToken(JsonToken.StartObject);
                this.enum10_0 = Enum10.ReferenceStart;
                return;

            case Enum11.Code:
                base.SetToken(JsonToken.String, this.method_24());
                return;

            case Enum11.CodeWScope:
                base.SetToken(JsonToken.StartObject);
                this.enum10_0 = Enum10.CodeWScopeStart;
                return;

            case Enum11.Integer:
                base.SetToken(JsonToken.Integer, (long)this.method_30());
                return;

            case Enum11.TimeStamp:
            case Enum11.Long:
                base.SetToken(JsonToken.Integer, this.method_31());
                return;

            default:
                throw new ArgumentOutOfRangeException("type", "Unexpected BsonType value: " + enum11_1);
            }
            time2 = time;
Label_017F:
            base.SetToken(JsonToken.Date, time2);
        }
示例#6
0
    // Token: 0x06000ECE RID: 3790 RVA: 0x000454CC File Offset: 0x000436CC
    private Class167 method_10()
    {
        Class167 @class = null;
        Class168 class2 = null;

        while (this.int_0 < this.string_0.Length)
        {
            object object_  = this.method_9();
            object object_2 = null;
            if (this.string_0[this.int_0] == ')' || this.string_0[this.int_0] == '|')
            {
                goto IL_67;
            }
            if (this.string_0[this.int_0] == '&')
            {
                goto IL_67;
            }
            Enum10 enum10_ = this.method_15();
            object_2 = this.method_9();
IL_6A:
            Class169 class3 = new Class169();
            class3.method_3(object_);
            class3.method_1(enum10_);
            class3.method_5(object_2);
            Class169 class4 = class3;
            if (this.string_0[this.int_0] == ')')
            {
                if (class2 != null)
                {
                    class2.method_2().Add(class4);
                    return(@class);
                }
                return(class4);
            }
            else
            {
                if (this.string_0[this.int_0] == '&')
                {
                    if (!this.method_14("&&"))
                    {
                        throw this.method_8();
                    }
                    if (class2 == null || class2.method_0() != (Enum10)8)
                    {
                        Class168 class5 = new Class168();
                        class5.method_1((Enum10)8);
                        Class168 class6 = class5;
                        if (class2 != null)
                        {
                            class2.method_2().Add(class6);
                        }
                        class2 = class6;
                        if (@class == null)
                        {
                            @class = class2;
                        }
                    }
                    class2.method_2().Add(class4);
                }
                if (this.string_0[this.int_0] != '|')
                {
                    continue;
                }
                if (this.method_14("||"))
                {
                    if (class2 == null || class2.method_0() != (Enum10)9)
                    {
                        Class168 class7 = new Class168();
                        class7.method_1((Enum10)9);
                        Class168 class8 = class7;
                        if (class2 != null)
                        {
                            class2.method_2().Add(class8);
                        }
                        class2 = class8;
                        if (@class == null)
                        {
                            @class = class2;
                        }
                    }
                    class2.method_2().Add(class4);
                    continue;
                }
                throw this.method_8();
            }
IL_67:
            enum10_ = (Enum10)3;
            goto IL_6A;
        }
        throw new JsonException("Path ended with open query.");
    }
示例#7
0
 public bool method_1(Class96 class96_0, Enum10 enum10_0)
 {
     if (class96_0 != null)
     {
         Class101.smethod_0("(发票上传)存临时表开始:fpdm:" + class96_0.FPDM + "  fphm:" + class96_0.FPNO + "   fpzl:" + class96_0.Fplx + "  method:" + enum10_0.ToString());
         try
         {
             lock (Class97.dataTable_0)
             {
                 if (enum10_0 == Enum10.Insert)
                 {
                     if (this.method_3(Class97.dataTable_0, class96_0.FPNO, class96_0.FPDM) != null)
                     {
                         return(this.method_1(class96_0, Enum10.Update));
                     }
                     DataRow row = Class97.dataTable_0.NewRow();
                     row["FPNO"]             = class96_0.FPNO;
                     row["FPDM"]             = class96_0.FPDM;
                     row["FPSLH"]            = class96_0.FPSLH;
                     row["FPStatus"]         = class96_0.FPStatus;
                     row["FPSQHRecieveTime"] = class96_0.FPSQHRecieveTime;
                     row["Fplx"]             = class96_0.Fplx;
                     row["FpUploadTime"]     = class96_0.FpUploadTime;
                     row["FpNSRSBH"]         = class96_0.FpNSRSBH;
                     row["FpSBBH"]           = class96_0.FpSBBH;
                     row["FpKPJH"]           = class96_0.FpKPJH;
                     row["IsFpUpFailed"]     = class96_0.IsFpUpFailed;
                     row["ISFpDownFailed"]   = class96_0.ISFpDownFailed;
                     row["isDBUpdated"]      = class96_0.Boolean_0;
                     row["ZFBZ"]             = class96_0.ZFBZ;
                     row["DZSYH"]            = class96_0.DZSYH;
                     Class97.dataTable_0.Rows.Add(row);
                     Class97.dataTable_0.AcceptChanges();
                     return(true);
                 }
                 if (enum10_0 == Enum10.Update)
                 {
                     DataRow[] rowArray = Class97.dataTable_0.Select("FPNO='" + class96_0.FPNO + "' AND FPDM='" + class96_0.FPDM + "' AND FPLX='" + class96_0.Fplx + "'");
                     if ((rowArray != null) && (rowArray.Length >= 1))
                     {
                         rowArray[0]["FPSLH"]            = class96_0.FPSLH;
                         rowArray[0]["FPDM"]             = class96_0.FPDM;
                         rowArray[0]["FPStatus"]         = class96_0.FPStatus;
                         rowArray[0]["FPSQHRecieveTime"] = class96_0.FPSQHRecieveTime;
                         rowArray[0]["Fplx"]             = class96_0.Fplx;
                         rowArray[0]["FpUploadTime"]     = class96_0.FpUploadTime;
                         rowArray[0]["FpNSRSBH"]         = class96_0.FpNSRSBH;
                         rowArray[0]["FpSBBH"]           = class96_0.FpSBBH;
                         rowArray[0]["FpKPJH"]           = class96_0.FpKPJH;
                         rowArray[0]["IsFpUpFailed"]     = class96_0.IsFpUpFailed;
                         rowArray[0]["ISFpDownFailed"]   = class96_0.ISFpDownFailed;
                         rowArray[0]["isDBUpdated"]      = class96_0.Boolean_0;
                         rowArray[0]["ZFBZ"]             = class96_0.ZFBZ;
                         rowArray[0]["DZSYH"]            = class96_0.DZSYH;
                         Class97.dataTable_0.AcceptChanges();
                         return(true);
                     }
                     return(false);
                 }
                 if (enum10_0 == Enum10.Delete)
                 {
                     DataRow[] rowArray2 = Class97.dataTable_0.Select("FPNO='" + class96_0.FPNO + "' AND FPDM='" + class96_0.FPDM + "' AND FPLX='" + class96_0.Fplx + "'");
                     if ((rowArray2 != null) && (rowArray2.Length >= 1))
                     {
                         Class97.dataTable_0.Rows.Remove(rowArray2[0]);
                         Class97.dataTable_0.AcceptChanges();
                         return(true);
                     }
                     return(false);
                 }
             }
             Class101.smethod_0("(发票上传)存临时表结束:fpdm:" + class96_0.FPDM + "  fphm:" + class96_0.FPNO + "   fpzl:" + class96_0.Fplx);
         }
         catch (Exception exception)
         {
             Class101.smethod_1("Update UpDownload FpTableInfo Error!" + exception.ToString());
         }
     }
     return(false);
 }
示例#8
0
 public static extern void alSourcef(IntPtr intptr0, Enum10 enum100, float float0);
示例#9
0
 public void method_1(Enum10 enum10_1)
 {
     this.enum10_0 = enum10_1;
 }
示例#10
0
文件: Class724.cs 项目: 15831944/WW
        public static void smethod_3(
            ReferenceType?referenceType,
            ulong handle,
            System.Action <byte> writeByte)
        {
            Enum10 enum10 = Enum10.const_0;

            if (referenceType.HasValue)
            {
                switch (referenceType.Value)
                {
                case ReferenceType.SoftPointerReference:
                    enum10 = Enum10.const_3;
                    break;

                case ReferenceType.HardPointerReference:
                    enum10 = Enum10.const_4;
                    break;

                case ReferenceType.SoftOwnershipReference:
                    enum10 = Enum10.const_1;
                    break;

                case ReferenceType.HardOwnershipReference:
                    enum10 = Enum10.const_2;
                    break;

                default:
                    throw new Exception("Invalid reference type.");
                }
            }
            byte num1 = (byte)((uint)enum10 << 4);

            if (handle == 0UL)
            {
                writeByte(num1);
            }
            else if (handle < 256UL)
            {
                byte num2 = (byte)((uint)num1 | 1U);
                writeByte(num2);
                writeByte((byte)handle);
            }
            else if (handle < 65536UL)
            {
                byte num2 = (byte)((uint)num1 | 2U);
                writeByte(num2);
                writeByte((byte)(handle >> 8));
                writeByte((byte)handle);
            }
            else if (handle < 16777216UL)
            {
                byte num2 = (byte)((uint)num1 | 3U);
                writeByte(num2);
                writeByte((byte)(handle >> 16));
                writeByte((byte)(handle >> 8));
                writeByte((byte)handle);
            }
            else if (handle < 4294967296UL)
            {
                byte num2 = (byte)((uint)num1 | 4U);
                writeByte(num2);
                writeByte((byte)(handle >> 24));
                writeByte((byte)(handle >> 16));
                writeByte((byte)(handle >> 8));
                writeByte((byte)handle);
            }
            else if (handle < 1099511627776UL)
            {
                byte num2 = (byte)((uint)num1 | 5U);
                writeByte(num2);
                writeByte((byte)(handle >> 32));
                writeByte((byte)(handle >> 24));
                writeByte((byte)(handle >> 16));
                writeByte((byte)(handle >> 8));
                writeByte((byte)handle);
            }
            else if (handle < 281474976710656UL)
            {
                byte num2 = (byte)((uint)num1 | 6U);
                writeByte(num2);
                writeByte((byte)(handle >> 40));
                writeByte((byte)(handle >> 32));
                writeByte((byte)(handle >> 24));
                writeByte((byte)(handle >> 16));
                writeByte((byte)(handle >> 8));
                writeByte((byte)handle);
            }
            else if (handle < 72057594037927936UL)
            {
                byte num2 = (byte)((uint)num1 | 7U);
                writeByte(num2);
                writeByte((byte)(handle >> 48));
                writeByte((byte)(handle >> 40));
                writeByte((byte)(handle >> 32));
                writeByte((byte)(handle >> 24));
                writeByte((byte)(handle >> 16));
                writeByte((byte)(handle >> 8));
                writeByte((byte)handle);
            }
            else
            {
                byte num2 = (byte)((uint)num1 | 8U);
                writeByte(num2);
                writeByte((byte)(handle >> 56));
                writeByte((byte)(handle >> 48));
                writeByte((byte)(handle >> 40));
                writeByte((byte)(handle >> 32));
                writeByte((byte)(handle >> 24));
                writeByte((byte)(handle >> 16));
                writeByte((byte)(handle >> 8));
                writeByte((byte)handle);
            }
        }
示例#11
0
    // Token: 0x06000EEB RID: 3819 RVA: 0x00045F84 File Offset: 0x00044184
    private bool method_7(JToken jtoken_0, JToken jtoken_1)
    {
        JValue jvalue;
        JValue jvalue2;

        if ((jvalue = (jtoken_0 as JValue)) != null && (jvalue2 = (jtoken_1 as JValue)) != null)
        {
            switch (base.method_0())
            {
            case (Enum10)1:
                if (Class169.smethod_1(jvalue, jvalue2))
                {
                    return(true);
                }
                break;

            case (Enum10)2:
                if (!Class169.smethod_1(jvalue, jvalue2))
                {
                    return(true);
                }
                break;

            case (Enum10)3:
                return(true);

            case (Enum10)4:
                if (jvalue.CompareTo(jvalue2) < 0)
                {
                    return(true);
                }
                break;

            case (Enum10)5:
                if (jvalue.CompareTo(jvalue2) <= 0)
                {
                    return(true);
                }
                break;

            case (Enum10)6:
                if (jvalue.CompareTo(jvalue2) > 0)
                {
                    return(true);
                }
                break;

            case (Enum10)7:
                if (jvalue.CompareTo(jvalue2) >= 0)
                {
                    return(true);
                }
                break;

            case (Enum10)10:
                if (Class169.smethod_0(jvalue, jvalue2))
                {
                    return(true);
                }
                break;

            case (Enum10)11:
                if (Class169.smethod_2(jvalue, jvalue2))
                {
                    return(true);
                }
                break;

            case (Enum10)12:
                if (!Class169.smethod_2(jvalue, jvalue2))
                {
                    return(true);
                }
                break;
            }
        }
        else
        {
            Enum10 @enum = base.method_0();
            if (@enum - (Enum10)2 <= 1)
            {
                return(true);
            }
        }
        return(false);
    }