예제 #1
0
 // Token: 0x060000CA RID: 202 RVA: 0x000038BE File Offset: 0x00001ABE
 public static TimeSpan smethod_41(GClass2 gclass2_0)
 {
     if (gclass2_0 == null)
     {
         throw new ArgumentNullException("value");
     }
     return((TimeSpan)((GClass5)gclass2_0).Object_0);
 }
예제 #2
0
 // Token: 0x060000CC RID: 204 RVA: 0x000038FE File Offset: 0x00001AFE
 public static Uri smethod_43(GClass2 gclass2_0)
 {
     if (gclass2_0 == null)
     {
         throw new ArgumentNullException("value");
     }
     return((Uri)((GClass5)gclass2_0).Object_0);
 }
예제 #3
0
 // Token: 0x060000C9 RID: 201 RVA: 0x0000389E File Offset: 0x00001A9E
 public static DateTimeOffset smethod_40(GClass2 gclass2_0)
 {
     if (gclass2_0 == null)
     {
         throw new ArgumentNullException("value");
     }
     return((DateTimeOffset)((GClass5)gclass2_0).Object_0);
 }
예제 #4
0
 // Token: 0x060000C7 RID: 199 RVA: 0x00003859 File Offset: 0x00001A59
 public static ushort smethod_38(GClass2 gclass2_0)
 {
     if (gclass2_0 == null)
     {
         throw new ArgumentNullException("value");
     }
     return(Convert.ToUInt16(((GClass5)gclass2_0).Object_0, NumberFormatInfo.InvariantInfo));
 }
예제 #5
0
 // Token: 0x060000C4 RID: 196 RVA: 0x00003801 File Offset: 0x00001A01
 public static string smethod_35(GClass2 gclass2_0)
 {
     if (gclass2_0 == null)
     {
         return(null);
     }
     return(gclass2_0.method_1(true));
 }
예제 #6
0
 // Token: 0x060000BA RID: 186 RVA: 0x0000368F File Offset: 0x0000188F
 public static bool smethod_25(GClass2 gclass2_0)
 {
     if (gclass2_0 == null)
     {
         throw new ArgumentNullException("value");
     }
     return(Convert.ToBoolean(((GClass5)gclass2_0).Object_0, NumberFormatInfo.InvariantInfo));
 }
예제 #7
0
        // Token: 0x060000A1 RID: 161 RVA: 0x000073CC File Offset: 0x000055CC
        private void method_0(TextWriter textWriter_0, bool bool_0)
        {
            switch (this.GEnum0_0)
            {
            case GEnum0.String:
                if (bool_0)
                {
                    textWriter_0.Write('"');
                }
                textWriter_0.Write(this.method_3(((GClass5)this).method_6()));
                if (bool_0)
                {
                    textWriter_0.Write('"');
                    return;
                }
                return;

            case GEnum0.Object:
            {
                textWriter_0.Write('{');
                bool flag = false;
                using (IEnumerator <KeyValuePair <string, GClass2> > enumerator = ((GClass4)this).method_5())
                {
                    while (enumerator.MoveNext())
                    {
                        KeyValuePair <string, GClass2> keyValuePair = enumerator.Current;
                        if (flag)
                        {
                            textWriter_0.Write(", ");
                        }
                        textWriter_0.Write('"');
                        textWriter_0.Write(this.method_3(keyValuePair.Key));
                        textWriter_0.Write("\": ");
                        if (keyValuePair.Value == null)
                        {
                            textWriter_0.Write("null");
                        }
                        else
                        {
                            keyValuePair.Value.method_0(textWriter_0, bool_0);
                        }
                        flag = true;
                    }
                }
                textWriter_0.Write('}');
                return;
            }

            case GEnum0.Array:
            {
                textWriter_0.Write('[');
                bool flag2 = false;
                foreach (GClass2 gclass in ((IEnumerable <GClass2>)((GClass3)this)))
                {
                    if (flag2)
                    {
                        textWriter_0.Write(", ");
                    }
                    if (gclass != null)
                    {
                        gclass.method_0(textWriter_0, bool_0);
                    }
                    else
                    {
                        textWriter_0.Write("null");
                    }
                    flag2 = true;
                }
                textWriter_0.Write(']');
                return;
            }

            case GEnum0.Boolean:
                textWriter_0.Write(GClass2.smethod_25(this) ? "true" : "false");
                return;
            }
            textWriter_0.Write(((GClass5)this).method_6());
        }