Example #1
0
    internal Class1065(Class703 A_0, BinaryReader A_1)
    {
        this.class153_0         = new Class153();
        this.class155_0         = new Class155();
        this.stringCollection_0 = new StringCollection();
        this.class162_0         = new Class162();
        this.class147_0         = new Class147(0);
        this.class344_0         = new Class344();
        this.hashtable_0        = new Hashtable();
        A_1.BaseStream.Position = A_0.class597_0.class1111_36.int_0;
        int num = A_0.class597_0.class1111_36.int_0 + A_0.class597_0.class1111_36.int_1;

        while (A_1.BaseStream.Position < num)
        {
            this.stringCollection_0.Add(Class813.smethod_1(A_1, true, false));
        }
        this.class153_0.method_23(A_1, A_0.class597_0.class1111_4);
        this.class153_0.method_26(A_1, A_0.class929_0.class1111_4.int_0, A_0.class929_0.class1111_4.int_1);
        this.class155_0.method_23(A_1, A_0.class597_0.class1111_5);
        this.class162_0.method_23(A_1, A_0.class597_0.class1111_42);
        this.class147_0.method_23(A_1, A_0.class597_0.class1111_43);
        this.class344_0.method_0(A_1, A_0.class597_0.class1111_37.int_0, A_0.class597_0.class1111_37.int_1);
        smethod_0(this.class162_0);
        smethod_0(this.class147_0);
        this.method_0();
    }
Example #2
0
 internal Class1065()
 {
     this.class153_0         = new Class153();
     this.class155_0         = new Class155();
     this.stringCollection_0 = new StringCollection();
     this.class162_0         = new Class162();
     this.class147_0         = new Class147(0);
     this.class344_0         = new Class344();
     this.hashtable_1        = new Hashtable();
 }
Example #3
0
        DynamicMetaObject DynamicMetaObject.BindSetIndex(SetIndexBinder binder, DynamicMetaObject[] indexes, DynamicMetaObject value)
        {
            Class155 <T> class2 = new Class155 <T> {
                setIndexBinder_0    = binder,
                dynamicMetaObject_0 = indexes,
                dynamicMetaObject_1 = value,
                class143_0          = (Class143 <T>) this
            };

            if (!this.method_0("TrySetIndex"))
            {
                return(base.BindSetIndex(class2.setIndexBinder_0, class2.dynamicMetaObject_0, class2.dynamicMetaObject_1));
            }
            return(this.method_3("TrySetIndex", class2.setIndexBinder_0, Class143 <T> .smethod_2(class2.dynamicMetaObject_0, class2.dynamicMetaObject_1), new Delegate2 <T>(class2.method_0)));
        }
Example #4
0
    // Token: 0x06000ED4 RID: 3796 RVA: 0x00045B54 File Offset: 0x00043D54
    private Class156 method_16(char char_1, bool bool_0)
    {
        List <string> list = null;

        while (this.int_0 < this.string_0.Length)
        {
            string text = this.method_12();
            this.method_5();
            this.method_17("Path ended with open indexer.");
            if (this.string_0[this.int_0] == char_1)
            {
                if (list == null)
                {
                    return(Class155.smethod_0(text, bool_0));
                }
                list.Add(text);
                if (!bool_0)
                {
                    Class161 @class = new Class161();
                    @class.method_1(list);
                    return(@class);
                }
                Class166 class2 = new Class166();
                class2.method_1(list);
                return(class2);
            }
            else
            {
                if (this.string_0[this.int_0] != ',')
                {
                    throw new JsonException("Unexpected character while parsing path indexer: " + this.string_0[this.int_0].ToString());
                }
                this.int_0++;
                this.method_5();
                if (list == null)
                {
                    list = new List <string>();
                }
                list.Add(text);
            }
        }
        throw new JsonException("Path ended with open indexer.");
    }
Example #5
0
    // Token: 0x06000EE9 RID: 3817 RVA: 0x00045E68 File Offset: 0x00044068
    private IEnumerable <JToken> method_6(JToken jtoken_0, JToken jtoken_1, object object_2)
    {
        JToken jtoken;

        if ((jtoken = (object_2 as JToken)) != null)
        {
            return(new JToken[]
            {
                jtoken
            });
        }
        List <Class156> list_;

        if ((list_ = (object_2 as List <Class156>)) != null)
        {
            return(Class155.smethod_1(list_, jtoken_0, jtoken_1, false));
        }
        return(Class20.smethod_17 <JToken>());
    }
Example #6
0
 // Token: 0x06000ED6 RID: 3798 RVA: 0x0000CC35 File Offset: 0x0000AE35
 internal IEnumerable <JToken> method_18(JToken jtoken_0, JToken jtoken_1, bool bool_0)
 {
     return(Class155.smethod_1(this.method_0(), jtoken_0, jtoken_1, bool_0));
 }
Example #7
0
    // Token: 0x06000EC5 RID: 3781 RVA: 0x00044C68 File Offset: 0x00042E68
    private bool method_2(List <Class156> list_1, int int_1, bool bool_0)
    {
        bool bool_ = false;
        bool flag  = false;
        bool flag2 = false;
        bool flag3 = false;

        while (this.int_0 < this.string_0.Length && !flag3)
        {
            char c = this.string_0[this.int_0];
            if (c <= ')')
            {
                if (c != ' ')
                {
                    if (c == '(')
                    {
                        goto IL_C3;
                    }
                    if (c == ')')
                    {
                        goto IL_BC;
                    }
                }
                else
                {
                    if (this.int_0 < this.string_0.Length)
                    {
                        flag3 = true;
                        continue;
                    }
                    continue;
                }
            }
            else
            {
                if (c == '.')
                {
                    if (this.int_0 > int_1)
                    {
                        string text = this.string_0.Substring(int_1, this.int_0 - int_1);
                        if (text == "*")
                        {
                            text = null;
                        }
                        list_1.Add(Class155.smethod_0(text, bool_));
                        bool_ = false;
                    }
                    if (this.int_0 + 1 < this.string_0.Length && this.string_0[this.int_0 + 1] == '.')
                    {
                        bool_ = true;
                        this.int_0++;
                    }
                    this.int_0++;
                    int_1 = this.int_0;
                    flag  = false;
                    flag2 = true;
                    continue;
                }
                if (c == '[')
                {
                    goto IL_C3;
                }
                if (c == ']')
                {
                    goto IL_BC;
                }
            }
            if (bool_0 && (c == '=' || c == '<' || c == '!' || c == '>' || c == '|' || c == '&'))
            {
                flag3 = true;
                continue;
            }
            if (!flag)
            {
                this.int_0++;
                continue;
            }
            throw new JsonException("Unexpected character following indexer: " + c.ToString());
IL_BC:
            flag3 = true;
            continue;
IL_C3:
            if (this.int_0 > int_1)
            {
                string text2 = this.string_0.Substring(int_1, this.int_0 - int_1);
                if (text2 == "*")
                {
                    text2 = null;
                }
                list_1.Add(Class155.smethod_0(text2, bool_));
                bool_ = false;
            }
            list_1.Add(this.method_3(c, bool_));
            this.int_0++;
            int_1 = this.int_0;
            flag  = true;
            flag2 = false;
        }
        bool flag4 = this.int_0 == this.string_0.Length;

        if (this.int_0 > int_1)
        {
            string text3 = this.string_0.Substring(int_1, this.int_0 - int_1).TrimEnd(new char[0]);
            if (text3 == "*")
            {
                text3 = null;
            }
            list_1.Add(Class155.smethod_0(text3, bool_));
        }
        else if (flag2 && (flag4 || bool_0))
        {
            throw new JsonException("Unexpected end while parsing path.");
        }
        return(flag4);
    }
 public abstract void Visit(Class155 c);
 public override void Visit(Class155 c) { }
Example #10
0
    // Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364
    public static Class139 smethod_1(object object_0, Type type_0)
    {
        Class139 @class = object_0 as Class139;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class166());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class102.smethod_1(type_0);
        if (type_0 == Class28.type_0)
        {
            @class = new Class166();
            if (object_0 != null && object_0.GetType() != Class28.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class99.smethod_0 <Array>(type_0))
        {
            @class = new Class140();
        }
        else if (Class99.smethod_0 <string>(type_0))
        {
            @class = new Class143();
        }
        else if (Class99.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class146();
        }
        else if (Class99.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class157();
        }
        else if (Class99.smethod_0 <ulong>(type_0))
        {
            @class = new Class165();
        }
        else if (Class99.smethod_0 <uint>(type_0))
        {
            @class = new Class163();
        }
        else if (Class99.smethod_0 <ushort>(type_0))
        {
            @class = new Class159();
        }
        else if (Class99.smethod_0 <long>(type_0))
        {
            @class = new Class156();
        }
        else if (Class99.smethod_0 <int>(type_0))
        {
            @class = new Class145();
        }
        else if (Class99.smethod_0 <short>(type_0))
        {
            @class = new Class141();
        }
        else if (Class99.smethod_0 <byte>(type_0))
        {
            @class = new Class164();
        }
        else if (Class99.smethod_0 <sbyte>(type_0))
        {
            @class = new Class161();
        }
        else if (Class99.smethod_0 <double>(type_0))
        {
            @class = new Class158();
        }
        else if (Class99.smethod_0 <float>(type_0))
        {
            @class = new Class162();
        }
        else if (Class99.smethod_0 <bool>(type_0))
        {
            @class = new Class144();
        }
        else if (Class99.smethod_0 <char>(type_0))
        {
            @class = new Class155();
        }
        else if (Class28.smethod_0(type_0))
        {
            Class166 class2 = new Class166();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class99.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class28.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class28.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class160(enum_));
            }
            if (Class99.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class28.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class154(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class154(object_0);
                }
                return(@class);
            }
            @class = new Class166();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }