コード例 #1
0
        // Token: 0x06000C03 RID: 3075 RVA: 0x00042F80 File Offset: 0x00041180
        public virtual void smethod_2160(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_441 class_ = arg_1.prop_14 as Class_441;
            Type      type   = obje_0.GetType();
            Class_489 <object, object> getUnionFields = Class_484.GetUnionFields;
            object target = null;

            object[] array = new object[3];
            array[0] = obje_0;
            array[1] = type;
            object arg  = getUnionFields(target, array);
            object arg2 = Class_484.GetUnionCaseInfo(arg);
            object obj  = Class_484.GetUnionCaseFields(arg);
            object obj2 = Class_484.GetUnionCaseInfoName(arg2);

            object[] array2 = obj as object[];
            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Case") : "Case");
            arg_0.kmethod_2037((string)obj2);
            if (array2 != null && array2.Length > 0)
            {
                arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Fields") : "Fields");
                arg_1.kmethod_3177(arg_0, obj);
            }
            arg_0.lmethod_2008();
        }
コード例 #2
0
        // Token: 0x0600155D RID: 5469 RVA: 0x000662D4 File Offset: 0x000644D4
        private bool pmethod_3929(Class_296 arg_0, object obje_0, Class_447 arg_1, Class_454 arg_2, Class_350 arg_3, Class_454 arg_4)
        {
            bool flag  = this.kmethod_3907(arg_1, arg_2, arg_3, arg_4) ?? this.gmethod_3923(this.field_3.field_2, Class_375.Arrays);
            bool flag2 = this.gmethod_3933(Class_494.Arrays, arg_1, arg_2, arg_3, arg_4);
            bool flag3 = flag || flag2;

            if (flag3)
            {
                arg_0.kmethod_2007();
                if (flag)
                {
                    this.smethod_3920(arg_0, arg_1.prop_0, obje_0);
                }
                if (flag2)
                {
                    this.xmethod_3921(arg_0, obje_0.GetType());
                }
                arg_0.cmethod_2014("$values", false);
            }
            if (arg_1.prop_0 == null)
            {
                arg_1.prop_0 = this.field_3.field_11.tmethod_3542(arg_1.prop_0 ?? typeof(object));
            }
            return(flag3);
        }
コード例 #3
0
        // Token: 0x06000C08 RID: 3080 RVA: 0x00043390 File Offset: 0x00041590
        public virtual void cmethod_2164(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_306.lmethod_2168(obje_0.GetType());
            Class_441 class_ = arg_1.prop_14 as Class_441;
            string    str_   = (string)Class_306.field_4.tmethod_4062(obje_0, "Key");
            object    obj    = Class_306.field_4.tmethod_4062(obje_0, "Value");
            Type      type   = (obj != null) ? obj.GetType() : null;

            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Key") : "Key");
            arg_0.kmethod_2037(str_);
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Type") : "Type");
            arg_0.kmethod_2037((type != null) ? type.FullName : null);
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Value") : "Value");
            if (type != null)
            {
                string str_2;
                if (Class_467.gmethod_3913(obj, type, out str_2))
                {
                    arg_0.kmethod_2037(str_2);
                }
                else
                {
                    arg_0.cmethod_2074(obj);
                }
            }
            else
            {
                arg_0.gmethod_2033();
            }
            arg_0.lmethod_2008();
        }
コード例 #4
0
 // Token: 0x06001263 RID: 4707 RVA: 0x00059688 File Offset: 0x00057888
 public virtual void gmethod_3313(Class_296 arg_0, params Class_299[] arg_1)
 {
     arg_0.kmethod_2007();
     for (int i = 0; i < this.field_0.Count; i++)
     {
         this.field_0[i].cmethod_2474(arg_0, arg_1);
     }
     arg_0.lmethod_2008();
 }
コード例 #5
0
        // Token: 0x06000C25 RID: 3109 RVA: 0x00043BDC File Offset: 0x00041DDC
        private void lmethod_2188(Class_296 arg_0, Regex arg_1, Class_418 arg_2)
        {
            Class_441 class_ = arg_2.prop_14 as Class_441;

            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Pattern") : "Pattern");
            arg_0.kmethod_2037(arg_1.ToString());
            arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590("Options") : "Options");
            arg_2.kmethod_3177(arg_0, arg_1.Options);
            arg_0.lmethod_2008();
        }
コード例 #6
0
        // Token: 0x06000C18 RID: 3096 RVA: 0x0004381C File Offset: 0x00041A1C
        public virtual void lmethod_2178(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_491 class_  = Class_308.field_2.Get(obje_0.GetType());
            Class_441 class_2 = arg_1.prop_14 as Class_441;

            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_2 != null) ? class_2.smethod_3590("Key") : "Key");
            arg_1.vmethod_3175(arg_0, class_.tmethod_4062(obje_0, "Key"), class_.cmethod_4064("Key"));
            arg_0.gmethod_2013((class_2 != null) ? class_2.smethod_3590("Value") : "Value");
            arg_1.vmethod_3175(arg_0, class_.tmethod_4062(obje_0, "Value"), class_.cmethod_4064("Value"));
            arg_0.lmethod_2008();
        }
コード例 #7
0
        // Token: 0x0600154B RID: 5451 RVA: 0x00065714 File Offset: 0x00063914
        private void xmethod_3911(Class_296 arg_0, object obje_0)
        {
            string text = this.tmethod_3912(arg_0, obje_0);

            if (this.field_4 != null && this.field_4.prop_0 >= TraceLevel.Info)
            {
                this.field_4.gmethod_2303(TraceLevel.Info, Class_326.FormatMessage(null, arg_0.prop_4, "Writing object reference to Id '{0}' for {1}.".FormatWith(CultureInfo.InvariantCulture, text, obje_0.GetType())), null);
            }
            arg_0.kmethod_2007();
            arg_0.cmethod_2014("$ref", false);
            arg_0.kmethod_2037(text);
            arg_0.lmethod_2008();
        }
コード例 #8
0
        // Token: 0x06001553 RID: 5459 RVA: 0x00065D14 File Offset: 0x00063F14
        private void pmethod_3919(Class_296 arg_0, object obje_0, Class_349 arg_1, Class_454 arg_2, Class_350 arg_3, Class_454 arg_4)
        {
            arg_0.kmethod_2007();
            bool flag = this.kmethod_3907(arg_1, arg_2, arg_3, arg_4) ?? this.gmethod_3923(this.field_3.field_2, Class_375.Objects);

            if (flag)
            {
                this.smethod_3920(arg_0, arg_1.prop_0, obje_0);
            }
            if (this.gmethod_3933(Class_494.Objects, arg_1, arg_2, arg_3, arg_4))
            {
                this.xmethod_3921(arg_0, arg_1.prop_0);
            }
        }
コード例 #9
0
 // Token: 0x06001384 RID: 4996 RVA: 0x0005BFDC File Offset: 0x0005A1DC
 private void cmethod_3534(Class_296 arg_0, string str_0, IDictionary <string, Class_459> arg_1)
 {
     if (arg_1 != null)
     {
         arg_0.gmethod_2013(str_0);
         arg_0.kmethod_2007();
         foreach (KeyValuePair <string, Class_459> keyValuePair in arg_1)
         {
             arg_0.gmethod_2013(keyValuePair.Key);
             this.tmethod_3532(keyValuePair.Value);
         }
         arg_0.lmethod_2008();
     }
 }
コード例 #10
0
        // Token: 0x06000BEF RID: 3055 RVA: 0x000428A4 File Offset: 0x00040AA4
        public virtual void cmethod_2144(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            DataSet   dataSet = (DataSet)obje_0;
            Class_441 class_  = arg_1.prop_14 as Class_441;
            Class_302 class_2 = new Class_302();

            arg_0.kmethod_2007();
            foreach (object obj in dataSet.Tables)
            {
                DataTable dataTable = (DataTable)obj;
                arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590(dataTable.TableName) : dataTable.TableName);
                class_2.tmethod_2132(arg_0, dataTable, arg_1);
            }
            arg_0.lmethod_2008();
        }
コード例 #11
0
        // Token: 0x06001029 RID: 4137 RVA: 0x00050A5C File Offset: 0x0004EC5C
        public virtual void smethod_2960(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_387           class_ = this.xmethod_2961(obje_0);
            XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(new NameTable());

            this.tmethod_2962(class_, xmlNamespaceManager);
            if (!this.prop_2)
            {
                arg_0.kmethod_2007();
            }
            this.kmethod_2967(arg_0, class_, xmlNamespaceManager, !this.prop_2);
            if (!this.prop_2)
            {
                arg_0.lmethod_2008();
            }
        }
コード例 #12
0
 // Token: 0x06001545 RID: 5445 RVA: 0x000651AC File Offset: 0x000633AC
 private void vmethod_3905(Class_296 arg_0, object obje_0, Class_369 arg_1, Class_454 arg_2, Class_350 arg_3, Class_454 arg_4)
 {
     if (arg_1.prop_0 == Class_496.Bytes)
     {
         bool flag = this.gmethod_3933(Class_494.Objects, arg_1, arg_2, arg_3, arg_4);
         if (flag)
         {
             arg_0.kmethod_2007();
             this.xmethod_3921(arg_0, arg_1.prop_1);
             arg_0.cmethod_2014("$value", false);
             Class_296.pmethod_2079(arg_0, arg_1.prop_0, obje_0);
             arg_0.lmethod_2008();
             return;
         }
     }
     Class_296.pmethod_2079(arg_0, arg_1.prop_0, obje_0);
 }
コード例 #13
0
        // Token: 0x06000BF4 RID: 3060 RVA: 0x00042A2C File Offset: 0x00040C2C
        public virtual void lmethod_2148(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            DataTable dataTable = (DataTable)obje_0;
            Class_441 class_    = arg_1.prop_14 as Class_441;

            arg_0.pmethod_2009();
            foreach (object obj in dataTable.Rows)
            {
                DataRow dataRow = (DataRow)obj;
                arg_0.kmethod_2007();
                foreach (object obj2 in dataRow.Table.Columns)
                {
                    DataColumn dataColumn = (DataColumn)obj2;
                    if (arg_1.prop_8 != Class_457.Ignore || (dataRow[dataColumn] != null && dataRow[dataColumn] != DBNull.Value))
                    {
                        arg_0.gmethod_2013((class_ != null) ? class_.smethod_3590(dataColumn.ColumnName) : dataColumn.ColumnName);
                        arg_1.kmethod_3177(arg_0, dataRow[dataColumn]);
                    }
                }
                arg_0.lmethod_2008();
            }
            arg_0.smethod_2010();
        }
コード例 #14
0
        // Token: 0x06001030 RID: 4144 RVA: 0x00050F3C File Offset: 0x0004F13C
        private void kmethod_2967(Class_296 arg_0, Class_387 arg_1, XmlNamespaceManager arg_2, bool bool_0)
        {
            Func <Class_387, bool> func = null;

            Class_407.NClass_0 nclass_ = new Class_407.NClass_0();
            nclass_.field_1 = arg_1;
            switch (nclass_.field_1.prop_0)
            {
            case XmlNodeType.Element:
                if (this.vmethod_2965(nclass_.field_1))
                {
                    IEnumerable <Class_387> source = nclass_.field_1.prop_2;
                    if (func == null)
                    {
                        func = new Func <Class_387, bool>(nclass_.nmethod_1);
                    }
                    if (source.All(func) && nclass_.field_1.prop_2.Count > 0)
                    {
                        this.dmethod_2966(arg_0, nclass_.field_1, arg_2, false);
                        return;
                    }
                }
                arg_2.PushScope();
                foreach (Class_387 class_ in nclass_.field_1.prop_3)
                {
                    if (class_.prop_6 == "http://www.w3.org/2000/xmlns/")
                    {
                        string prefix = (class_.prop_1 != "xmlns") ? class_.prop_1 : string.Empty;
                        string uri    = class_.prop_5;
                        arg_2.AddNamespace(prefix, uri);
                    }
                }
                if (bool_0)
                {
                    arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2));
                }
                if (!this.smethod_2980(nclass_.field_1.prop_3).Any <Class_387>() && nclass_.field_1.prop_2.Count == 1 && nclass_.field_1.prop_2[0].prop_0 == XmlNodeType.Text)
                {
                    arg_0.kmethod_2037(nclass_.field_1.prop_2[0].prop_5);
                }
                else if (nclass_.field_1.prop_2.Count == 0 && Class_510.IsNullOrEmpty <Class_387>(nclass_.field_1.prop_3))
                {
                    Class_391 class_2 = (Class_391)nclass_.field_1;
                    if (class_2.prop_0)
                    {
                        arg_0.gmethod_2033();
                    }
                    else
                    {
                        arg_0.kmethod_2037(string.Empty);
                    }
                }
                else
                {
                    arg_0.kmethod_2007();
                    for (int i = 0; i < nclass_.field_1.prop_3.Count; i++)
                    {
                        this.kmethod_2967(arg_0, nclass_.field_1.prop_3[i], arg_2, true);
                    }
                    this.dmethod_2966(arg_0, nclass_.field_1, arg_2, true);
                    arg_0.lmethod_2008();
                }
                arg_2.PopScope();
                return;

            case XmlNodeType.Attribute:
            case XmlNodeType.Text:
            case XmlNodeType.CDATA:
            case XmlNodeType.ProcessingInstruction:
            case XmlNodeType.Whitespace:
            case XmlNodeType.SignificantWhitespace:
                if (nclass_.field_1.prop_6 == "http://www.w3.org/2000/xmlns/" && nclass_.field_1.prop_5 == "http://james.newtonking.com/projects/json")
                {
                    return;
                }
                if (nclass_.field_1.prop_6 == "http://james.newtonking.com/projects/json" && nclass_.field_1.prop_1 == "Array")
                {
                    return;
                }
                if (bool_0)
                {
                    arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2));
                }
                arg_0.kmethod_2037(nclass_.field_1.prop_5);
                return;

            case XmlNodeType.Comment:
                if (bool_0)
                {
                    arg_0.vmethod_2075(nclass_.field_1.prop_5);
                    return;
                }
                return;

            case XmlNodeType.Document:
            case XmlNodeType.DocumentFragment:
                this.dmethod_2966(arg_0, nclass_.field_1, arg_2, bool_0);
                return;

            case XmlNodeType.DocumentType:
            {
                Class_395 class_3 = (Class_395)nclass_.field_1;
                arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2));
                arg_0.kmethod_2007();
                if (!string.IsNullOrEmpty(class_3.prop_0))
                {
                    arg_0.gmethod_2013("@name");
                    arg_0.kmethod_2037(class_3.prop_0);
                }
                if (!string.IsNullOrEmpty(class_3.prop_2))
                {
                    arg_0.gmethod_2013("@public");
                    arg_0.kmethod_2037(class_3.prop_2);
                }
                if (!string.IsNullOrEmpty(class_3.prop_1))
                {
                    arg_0.gmethod_2013("@system");
                    arg_0.kmethod_2037(class_3.prop_1);
                }
                if (!string.IsNullOrEmpty(class_3.prop_3))
                {
                    arg_0.gmethod_2013("@internalSubset");
                    arg_0.kmethod_2037(class_3.prop_3);
                }
                arg_0.lmethod_2008();
                return;
            }

            case XmlNodeType.XmlDeclaration:
            {
                Class_393 class_4 = (Class_393)nclass_.field_1;
                arg_0.gmethod_2013(this.cmethod_2964(nclass_.field_1, arg_2));
                arg_0.kmethod_2007();
                if (!string.IsNullOrEmpty(class_4.prop_0))
                {
                    arg_0.gmethod_2013("@version");
                    arg_0.kmethod_2037(class_4.prop_0);
                }
                if (!string.IsNullOrEmpty(class_4.prop_1))
                {
                    arg_0.gmethod_2013("@encoding");
                    arg_0.kmethod_2037(class_4.prop_1);
                }
                if (!string.IsNullOrEmpty(class_4.prop_2))
                {
                    arg_0.gmethod_2013("@standalone");
                    arg_0.kmethod_2037(class_4.prop_2);
                }
                arg_0.lmethod_2008();
                return;
            }
            }
            throw new Class_417("Unexpected XmlNodeType when serializing nodes: " + nclass_.field_1.prop_0);
        }