示例#1
0
    internal Class348(SubDocumentType A_0)
    {
        int num = 0x13;

        if ((A_0 != SubDocumentType.Main) && (A_0 != SubDocumentType.Header))
        {
            throw new ArgumentException(BookmarkStart.b("䨸为弼笾⹀⁂ᅄ㹆㥈⹊", num));
        }
        this.subDocumentType_0 = A_0;
        this.class152_0        = new Class152();
        this.class166_0        = new Class166();
        this.class156_0        = new Class156();
    }
示例#2
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.");
    }
示例#3
0
 // Token: 0x0600125E RID: 4702
 // RVA: 0x0006165C File Offset: 0x0005F85C
 public Class162()
 {
     this.class165_0 = new Class165();
     this.class154_0 = new Class154();
     this.class166_0 = new Class166();
     this.class176_0 = new Class176();
     this.enum20_0 = Enum20.const_1;
     this.enum18_0 = Enum18.const_1;
     this.string_7 = "osu!";
     this.bool_5 = true;
     this.bool_1 = true;
     this.bool_4 = true;
     this.bool_3 = true;
     this.bool_2 = true;
     this.int_2 = 15;
     this.int_1 = 0;
     this.string_8 = string.Empty;
     this.string_6 = string.Empty;
 }
 public abstract void Visit(Class166 c);
 public override void Visit(Class166 c) { }
示例#6
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);
    }