Beispiel #1
0
        private JsonSchemaType method_10(Type type_0, Required required_0)
        {
            JsonSchemaType none = JsonSchemaType.None;

            if ((required_0 != Required.Always) && Class194.smethod_9(type_0))
            {
                none = JsonSchemaType.Null;
                if (Class194.smethod_10(type_0))
                {
                    type_0 = Nullable.GetUnderlyingType(type_0);
                }
            }
            Enum17 enum2 = Class181.smethod_0(type_0);

            switch (enum2)
            {
            case Enum17.Empty:
            case Enum17.Object:
                return(none | JsonSchemaType.String);

            case Enum17.Char:
                return(none | JsonSchemaType.String);

            case Enum17.Boolean:
                return(none | JsonSchemaType.Boolean);

            case Enum17.SByte:
            case Enum17.Int16:
            case Enum17.UInt16:
            case Enum17.Int32:
            case Enum17.Byte:
            case Enum17.UInt32:
            case Enum17.Int64:
            case Enum17.UInt64:
            case Enum17.BigInteger:
                return(none | JsonSchemaType.Integer);

            case Enum17.Single:
            case Enum17.Double:
            case Enum17.Decimal:
                return(none | JsonSchemaType.Float);

            case Enum17.DateTime:
            case Enum17.DateTimeOffset:
                return(none | JsonSchemaType.String);

            case Enum17.Guid:
            case Enum17.TimeSpan:
            case Enum17.Uri:
            case Enum17.String:
            case Enum17.Bytes:
                return(none | JsonSchemaType.String);

            case Enum17.DBNull:
                return(none | JsonSchemaType.Null);
            }
            throw new JsonException("Unexpected type code '{0}' for type '{1}'.".smethod_1(CultureInfo.InvariantCulture, enum2, type_0));
        }
        internal static bool smethod_2(Type type_0)
        {
            TypeConverter converter = Class181.smethod_13(type_0);

            if (((((converter == null) || (converter is ComponentConverter)) || ((converter is ReferenceConverter) || (converter.GetType() == typeof(TypeConverter)))) || !converter.CanConvertTo(typeof(string))) && (!(type_0 == typeof(Type)) && !type_0.IsSubclassOf(typeof(Type))))
            {
                return(false);
            }
            return(true);
        }
        public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
        {
            bool flag;
            Type type = (flag = Class194.smethod_10(objectType)) ? Nullable.GetUnderlyingType(objectType) : objectType;

            if (reader.JsonToken_0 == JsonToken.Null)
            {
                if (!Class194.smethod_10(objectType))
                {
                    throw JsonSerializationException.smethod_1(reader, "Cannot convert null value to {0}.".smethod_0(CultureInfo.InvariantCulture, objectType));
                }
                return(null);
            }
            try
            {
                if (reader.JsonToken_0 == JsonToken.String)
                {
                    string str2;
                    string str = reader.Object_0.ToString();
                    if ((str == string.Empty) && flag)
                    {
                        return(null);
                    }
                    Class179 <string, string> class2 = this.method_0(type);
                    if (str.IndexOf(',') != -1)
                    {
                        string[] strArray = str.Split(new char[] { ',' });
                        for (int i = 0; i < strArray.Length; i++)
                        {
                            string str3 = strArray[i].Trim();
                            strArray[i] = smethod_0(class2, str3);
                        }
                        str2 = string.Join(", ", strArray);
                    }
                    else
                    {
                        str2 = smethod_0(class2, str);
                    }
                    return(Enum.Parse(type, str2, true));
                }
                if (reader.JsonToken_0 == JsonToken.Integer)
                {
                    return(Class181.smethod_10(reader.Object_0, CultureInfo.InvariantCulture, type));
                }
            }
            catch (Exception exception)
            {
                throw JsonSerializationException.smethod_2(reader, "Error converting value {0} to type '{1}'.".smethod_1(CultureInfo.InvariantCulture, Class193.smethod_7(reader.Object_0), objectType), exception);
            }
            throw JsonSerializationException.smethod_1(reader, "Unexpected token when parsing enum. Expected String or Integer, got {0}.".smethod_0(CultureInfo.InvariantCulture, reader.JsonToken_0));
        }
 internal StyleCollection(Document A_0) : base(A_0, A_0)
 {
     this.string_2          = string.Empty;
     this.string_3          = string.Empty;
     this.class547_0        = new Class547();
     this.class656_0        = new Class656();
     this.class181_0        = new Class181();
     this.class656_1        = new Class656();
     this.object_0          = new object();
     this.object_1          = new object();
     this.characterFormat_0 = new CharacterFormat(A_0);
     this.paragraphFormat_0 = new ParagraphFormat(A_0);
     this.dictionary_0      = null;
 }
Beispiel #5
0
 public virtual void WriteValue(object value)
 {
     if (value == null)
     {
         this.WriteNull();
     }
     else
     {
         if (value is BigInteger)
         {
             throw smethod_4(this, value);
         }
         smethod_3(this, Class181.smethod_1(value), value);
     }
 }
Beispiel #6
0
    private static int smethod_2(string[] A_0, Class181 A_1, Class1030 A_2)
    {
        int num = 0;

        foreach (string str in A_0)
        {
            Class1125 class2 = A_1[str] as Class1125;
            A_2.Add(class2);
            if (class2 != null)
            {
                num++;
            }
        }
        return(num);
    }
Beispiel #7
0
    private SortedList method_12(bool A_0)
    {
        int num = 0x12;

        string[] strArray2 = new string[] { BookmarkStart.b("唷嬹主夽⤿ⱁ楃㉅❇㩉", 0x12), BookmarkStart.b("唷嬹主夽⤿ⱁ楃㑅ⅇⵉ⑋㩍", 0x12), BookmarkStart.b("唷嬹主夽⤿ⱁ楃⑅❇㹉㡋⅍㵏", 0x12), BookmarkStart.b("唷嬹主夽⤿ⱁ楃⩅ⵇⱉ㡋", 0x12) };
        Class181 class2    = new Class181(true);

        foreach (DictionaryEntry entry in this.class181_0)
        {
            class2.Add(entry.Key, entry.Value);
        }
        Class1030 class3 = new Class1030();
        int       num2   = smethod_2(strArray2, class2, class3);

        if (num2 != 0)
        {
            Class1125 class5 = class2[BookmarkStart.b("唷嬹主夽⤿ⱁ", num)] as Class1125;
            if (class5 != null)
            {
                for (int i = 0; i < class3.Count; i++)
                {
                    if (class3.method_0(i) == null)
                    {
                        class3.method_1(i, smethod_3(class5, i));
                    }
                    else
                    {
                        class2.Remove(strArray2[i]);
                    }
                }
                class2[BookmarkStart.b("唷嬹主夽⤿ⱁ", num)] = Class1125.smethod_7(class3);
            }
            else if (num2 == strArray2.Length)
            {
                Class1125 class4 = Class1125.smethod_7(class3);
                class2.Add(BookmarkStart.b("唷嬹主夽⤿ⱁ", num), class4);
                for (int j = 0; j < strArray2.Length; j++)
                {
                    class2.Remove(strArray2[j]);
                }
            }
        }
        if (!A_0)
        {
            return(class2);
        }
        return(new SortedList(class2, new Class1032()));
    }
Beispiel #8
0
        internal static bool smethod_0(object object_0, Type type_0, out string string_0)
        {
            TypeConverter converter = Class181.smethod_13(type_0);

            if (((converter != null) && !(converter is ComponentConverter)) && ((converter.GetType() != typeof(TypeConverter)) && converter.CanConvertTo(typeof(string))))
            {
                string_0 = converter.ConvertToInvariantString(object_0);
                return(true);
            }
            if (object_0 is Type)
            {
                string_0 = ((Type)object_0).AssemblyQualifiedName;
                return(true);
            }
            string_0 = null;
            return(false);
        }
 internal JsonContract(Type underlyingType)
 {
     Class203.smethod_2(underlyingType, "underlyingType");
     this.UnderlyingType = underlyingType;
     this.bool_2         = underlyingType.smethod_9();
     this.bool_5         = !underlyingType.smethod_3() && !underlyingType.smethod_10();
     this.bool_0         = Class194.smethod_9(underlyingType);
     this.type_0         = (!this.bool_0 || !Class194.smethod_10(underlyingType)) ? underlyingType : Nullable.GetUnderlyingType(underlyingType);
     this.CreatedType    = this.type_0;
     this.bool_1         = Class181.smethod_3(this.type_0);
     this.bool_3         = this.type_0.smethod_7();
     if (this.type_0 == typeof(byte[]))
     {
         this.enum14_0 = Enum14.ReadAsBytes;
     }
     else if (this.type_0 == typeof(int))
     {
         this.enum14_0 = Enum14.ReadAsInt32;
     }
     else if (this.type_0 == typeof(decimal))
     {
         this.enum14_0 = Enum14.ReadAsDecimal;
     }
     else if (this.type_0 == typeof(string))
     {
         this.enum14_0 = Enum14.ReadAsString;
     }
     else if (this.type_0 == typeof(DateTime))
     {
         this.enum14_0 = Enum14.ReadAsDateTime;
     }
     else if (this.type_0 == typeof(DateTimeOffset))
     {
         this.enum14_0 = Enum14.ReadAsDateTimeOffset;
     }
     else
     {
         this.enum14_0 = Enum14.Read;
     }
 }
        private void method_37()
        {
            object    obj2;
            JsonToken integer;

            this.method_17();
            char c          = this.char_2[this.int_1];
            int  startIndex = this.int_1;

            this.method_25();
            this.struct29_0 = new Struct29(this.char_2, startIndex, this.int_1 - startIndex);
            bool flag  = char.IsDigit(c) && (this.struct29_0.Int32_1 == 1);
            bool flag2 = (((c == '0') && (this.struct29_0.Int32_1 > 1)) && ((this.struct29_0.Char_0[this.struct29_0.Int32_0 + 1] != '.') && (this.struct29_0.Char_0[this.struct29_0.Int32_0 + 1] != 'e'))) && (this.struct29_0.Char_0[this.struct29_0.Int32_0 + 1] != 'E');

            if (base.enum14_0 == Enum14.ReadAsInt32)
            {
                if (flag)
                {
                    obj2 = c - '0';
                }
                else if (flag2)
                {
                    string str  = this.struct29_0.ToString();
                    int    num2 = str.StartsWith("0x", StringComparison.OrdinalIgnoreCase) ? Convert.ToInt32(str, 0x10) : Convert.ToInt32(str, 8);
                    obj2 = num2;
                }
                else
                {
                    obj2 = Class181.smethod_15(this.struct29_0.Char_0, this.struct29_0.Int32_0, this.struct29_0.Int32_1);
                }
                integer = JsonToken.Integer;
            }
            else if (base.enum14_0 == Enum14.ReadAsDecimal)
            {
                if (flag)
                {
                    obj2 = c - 48M;
                }
                else if (flag2)
                {
                    string str2 = this.struct29_0.ToString();
                    long   num3 = str2.StartsWith("0x", StringComparison.OrdinalIgnoreCase) ? Convert.ToInt64(str2, 0x10) : Convert.ToInt64(str2, 8);
                    obj2 = Convert.ToDecimal(num3);
                }
                else
                {
                    obj2 = decimal.Parse(this.struct29_0.ToString(), NumberStyles.Float | NumberStyles.AllowThousands | NumberStyles.AllowTrailingSign, CultureInfo.InvariantCulture);
                }
                integer = JsonToken.Float;
            }
            else if (flag)
            {
                obj2    = ((long)c) - 0x30L;
                integer = JsonToken.Integer;
            }
            else if (flag2)
            {
                string str4 = this.struct29_0.ToString();
                obj2    = str4.StartsWith("0x", StringComparison.OrdinalIgnoreCase) ? Convert.ToInt64(str4, 0x10) : Convert.ToInt64(str4, 8);
                integer = JsonToken.Integer;
            }
            else
            {
                long   num4;
                Enum18 enum2 = Class181.smethod_16(this.struct29_0.Char_0, this.struct29_0.Int32_0, this.struct29_0.Int32_1, out num4);
                switch (enum2)
                {
                case Enum18.Success:
                    obj2    = num4;
                    integer = JsonToken.Integer;
                    goto Label_032C;

                case Enum18.Invalid:
                {
                    string s = this.struct29_0.ToString();
                    if (base.floatParseHandling_0 == FloatParseHandling.Decimal)
                    {
                        obj2 = decimal.Parse(s, NumberStyles.Float | NumberStyles.AllowThousands | NumberStyles.AllowTrailingSign, CultureInfo.InvariantCulture);
                    }
                    else
                    {
                        obj2 = Convert.ToDouble(s, CultureInfo.InvariantCulture);
                    }
                    integer = JsonToken.Float;
                    goto Label_032C;
                }

                case Enum18.Overflow:
                    obj2    = BigInteger.Parse(this.struct29_0.ToString(), CultureInfo.InvariantCulture);
                    integer = JsonToken.Integer;
                    goto Label_032C;
                }
                if (enum2 != Enum18.Overflow)
                {
                    throw JsonReaderException.smethod_1(this, "Unknown error parsing integer.");
                }
                obj2    = BigInteger.Parse(this.struct29_0.ToString(), CultureInfo.InvariantCulture);
                integer = JsonToken.Integer;
            }
Label_032C:
            this.method_26();
            base.SetToken(integer, obj2);
        }
        internal static bool smethod_0(Type type_0)
        {
            Enum17 enum2 = Class181.smethod_0(type_0);

            return((enum2 != Enum17.Empty) && (enum2 != Enum17.Object));
        }
 public abstract void Visit(Class181 c);
 public override void Visit(Class181 c) { }
Beispiel #14
0
 public Class1042(Class295 A_0)
 {
     this.arrayList_0 = new ArrayList();
     this.class295_0  = A_0;
     this.class181_0  = new Class181(false);
 }
Beispiel #15
0
 public Class1042()
 {
     this.arrayList_0 = new ArrayList();
     this.class181_0  = new Class181(false);
 }
Beispiel #16
0
    public static void smethod_0(Class404 A_0, bool A_1)
    {
        int      num    = 12;
        Class181 class2 = new Class181();
        Class181 class3 = new Class181();

        foreach (Class467 class5 in (IEnumerable)A_0.method_0())
        {
            string key = class5.method_2();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_122 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(9);
                    dictionary1.Add(BookmarkStart.b("匱䐳䘵吷匹弻弽㐿⭁⭃⡅杇㱉≋⩍繏㵑⑓㍕㙗≙ㅛ㉝ٟൡᙣ୥१ṩὫ䍭o፱ᝳᵵ᥷ᵹ᥻偽ﲇ晴ﶓ놙첟", num), 0);
                    dictionary1.Add(BookmarkStart.b("嬱夳圵強弹ጻ尽ⴿ㉁", num), 1);
                    dictionary1.Add(BookmarkStart.b("嬱夳圵強弹ጻ䘽洿❁⥃⁅", num), 2);
                    dictionary1.Add(BookmarkStart.b("嬱夳圵強弹ጻ夽⤿⑁", num), 3);
                    dictionary1.Add(BookmarkStart.b("嬱夳圵強弹ጻ吽〿❁⍃", num), 4);
                    dictionary1.Add(BookmarkStart.b("嬱夳圵強弹ጻ䘽洿㉁❃㱅", num), 5);
                    dictionary1.Add(BookmarkStart.b("嬱夳圵強弹ጻ丽⸿╁", num), 6);
                    dictionary1.Add(BookmarkStart.b("嬱夳圵強弹ጻ䘽洿㕁⥃⁅", num), 7);
                    dictionary1.Add(BookmarkStart.b("匱䐳䘵吷匹弻弽㐿⭁⭃⡅杇㱉≋⩍繏㵑⑓㍕㙗≙ㅛ㉝ٟൡᙣ୥१ṩὫ䍭Ὧᑱታή᭷ό᡻ᅽﺉꊋﮗﮙﮝ쒟쮣좥\udca7", num), 8);
                    Class1160.dictionary_122 = dictionary1;
                }
                if (Class1160.dictionary_122.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                    {
                        continue;
                    }

                    case 1:
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                    case 6:
                    case 7:
                    case 8:
                    {
                        class2[class5.method_1()] = class5.method_2();
                        continue;
                    }
                    }
                }
            }
            class3.Add(class5.method_0(), class5.method_2());
        }
        Class467 class6 = new Class467(BookmarkStart.b("ᴱ漳电圷吹䠻嬽⸿㙁ᭃቅㅇ㩉⥋㵍൏籑ⱓ㭕㑗", num), "");

        A_0.method_0().method_2(class6);
        Class397 class4 = new Class397(class6.method_4(), A_1);

        class4.method_2(BookmarkStart.b("昱䴳䘵崷䤹", num));
        class4.method_18(BookmarkStart.b("䨱夳娵嘷䤹", num), BookmarkStart.b("娱䀳䈵䠷9ጻᄽ㌿⅁ⱃ⍅╇⭉㽋恍㽏≑ㅓ㡕⁗㝙せ㡝ཟၡॣݥᱧᥩ䉫ŭɯᕱ孳ٵ᥷᥹᝻ώꮃ뒅뢇몉몋ꆍ﶑望ﶗ뎝풟\udba1\ud4a3쎥\udba7", num));
        foreach (DictionaryEntry entry2 in class2)
        {
            smethod_1((string)entry2.Key, (string)entry2.Value, class4);
        }
        smethod_1(BookmarkStart.b("䀱儳娵䬷", num), BookmarkStart.b("匱䐳䘵吷匹弻弽㐿⭁⭃⡅杇㱉≋⩍繏㵑⑓㍕㙗≙ㅛ㉝ٟൡᙣ୥१ṩὫ䍭o፱ᝳᵵ᥷ᵹ᥻偽ﲇ晴ﶓ놙첟", num), class4);
        smethod_1(BookmarkStart.b("䨱夳娵", num), BookmarkStart.b("匱䐳䘵吷匹弻弽㐿⭁⭃⡅杇㉉⅋≍", num), class4);
        foreach (DictionaryEntry entry in class3)
        {
            smethod_2((string)entry.Key, (string)entry.Value, class4);
        }
        class4.method_3();
    }
Beispiel #17
0
        internal static void smethod_3(JsonWriter jsonWriter_0, Enum17 enum17_0, object object_0)
        {
            switch (enum17_0)
            {
            case Enum17.Char:
                jsonWriter_0.WriteValue((char)object_0);
                return;

            case Enum17.CharNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new char?((char)object_0));
                return;

            case Enum17.Boolean:
                jsonWriter_0.WriteValue((bool)object_0);
                return;

            case Enum17.BooleanNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new bool?((bool)object_0));
                return;

            case Enum17.SByte:
                jsonWriter_0.WriteValue((sbyte)object_0);
                return;

            case Enum17.SByteNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new sbyte?((sbyte)object_0));
                return;

            case Enum17.Int16:
                jsonWriter_0.WriteValue((short)object_0);
                return;

            case Enum17.Int16Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new short?((short)object_0));
                return;

            case Enum17.UInt16:
                jsonWriter_0.WriteValue((ushort)object_0);
                return;

            case Enum17.UInt16Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new ushort?((ushort)object_0));
                return;

            case Enum17.Int32:
                jsonWriter_0.WriteValue((int)object_0);
                return;

            case Enum17.Int32Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new int?((int)object_0));
                return;

            case Enum17.Byte:
                jsonWriter_0.WriteValue((byte)object_0);
                return;

            case Enum17.ByteNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new byte?((byte)object_0));
                return;

            case Enum17.UInt32:
                jsonWriter_0.WriteValue((uint)object_0);
                return;

            case Enum17.UInt32Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new uint?((uint)object_0));
                return;

            case Enum17.Int64:
                jsonWriter_0.WriteValue((long)object_0);
                return;

            case Enum17.Int64Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new long?((long)object_0));
                return;

            case Enum17.UInt64:
                jsonWriter_0.WriteValue((ulong)object_0);
                return;

            case Enum17.UInt64Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new ulong?((ulong)object_0));
                return;

            case Enum17.Single:
                jsonWriter_0.WriteValue((float)object_0);
                return;

            case Enum17.SingleNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new float?((float)object_0));
                return;

            case Enum17.Double:
                jsonWriter_0.WriteValue((double)object_0);
                return;

            case Enum17.DoubleNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new double?((double)object_0));
                return;

            case Enum17.DateTime:
                jsonWriter_0.WriteValue((DateTime)object_0);
                return;

            case Enum17.DateTimeNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new DateTime?((DateTime)object_0));
                return;

            case Enum17.DateTimeOffset:
                jsonWriter_0.WriteValue((DateTimeOffset)object_0);
                return;

            case Enum17.DateTimeOffsetNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new DateTimeOffset?((DateTimeOffset)object_0));
                return;

            case Enum17.Decimal:
                jsonWriter_0.WriteValue((decimal)object_0);
                return;

            case Enum17.DecimalNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new decimal?((decimal)object_0));
                return;

            case Enum17.Guid:
                jsonWriter_0.WriteValue((Guid)object_0);
                return;

            case Enum17.GuidNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new Guid?((Guid)object_0));
                return;

            case Enum17.TimeSpan:
                jsonWriter_0.WriteValue((TimeSpan)object_0);
                return;

            case Enum17.TimeSpanNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new TimeSpan?((TimeSpan)object_0));
                return;

            case Enum17.BigInteger:
                jsonWriter_0.WriteValue((BigInteger)object_0);
                return;

            case Enum17.BigIntegerNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new BigInteger?((BigInteger)object_0));
                return;

            case Enum17.Uri:
                jsonWriter_0.WriteValue((Uri)object_0);
                return;

            case Enum17.String:
                jsonWriter_0.WriteValue((string)object_0);
                return;

            case Enum17.Bytes:
                jsonWriter_0.WriteValue((byte[])object_0);
                return;

            case Enum17.DBNull:
                jsonWriter_0.WriteNull();
                return;
            }
            if (!(object_0 is IConvertible))
            {
                throw smethod_4(jsonWriter_0, object_0);
            }
            IConvertible convertible = (IConvertible)object_0;
            Class180     class2      = Class181.smethod_2(convertible);
            object       obj2        = convertible.ToType(class2.Type_0, CultureInfo.InvariantCulture);

            smethod_3(jsonWriter_0, class2.Enum17_0, obj2);
        }
Beispiel #18
0
 internal Class558(string A_0)
 {
     this.class181_0 = new Class181();
     this.method_0(A_0);
 }
Beispiel #19
0
 internal Class558()
 {
     this.class181_0 = new Class181();
 }
Beispiel #20
0
 public JsonPrimitiveContract(Type underlyingType) : base(underlyingType)
 {
     base.enum15_0 = Enum15.Primitive;
     this.Enum17_0 = Class181.smethod_0(underlyingType);
     base.bool_4   = true;
 }
Beispiel #21
0
        public static string ToString(object value)
        {
            if (value == null)
            {
                return(Null);
            }
            switch (Class181.smethod_1(value))
            {
            case Enum17.Char:
                return(ToString((char)value));

            case Enum17.Boolean:
                return(ToString((bool)value));

            case Enum17.SByte:
                return(ToString((sbyte)value));

            case Enum17.Int16:
                return(ToString((short)value));

            case Enum17.UInt16:
                return(ToString((ushort)value));

            case Enum17.Int32:
                return(ToString((int)value));

            case Enum17.Byte:
                return(ToString((byte)value));

            case Enum17.UInt32:
                return(ToString((uint)value));

            case Enum17.Int64:
                return(ToString((long)value));

            case Enum17.UInt64:
                return(ToString((ulong)value));

            case Enum17.Single:
                return(ToString((float)value));

            case Enum17.Double:
                return(ToString((double)value));

            case Enum17.DateTime:
                return(ToString((DateTime)value));

            case Enum17.DateTimeOffset:
                return(ToString((DateTimeOffset)value));

            case Enum17.Decimal:
                return(ToString((decimal)value));

            case Enum17.Guid:
                return(ToString((Guid)value));

            case Enum17.TimeSpan:
                return(ToString((TimeSpan)value));

            case Enum17.BigInteger:
                return(smethod_0((BigInteger)value));

            case Enum17.Uri:
                return(ToString((Uri)value));

            case Enum17.String:
                return(ToString((string)value));

            case Enum17.DBNull:
                return(Null);
            }
            throw new ArgumentException("Unsupported type: {0}. Use the JsonSerializer class to get the object's JSON representation.".smethod_0(CultureInfo.InvariantCulture, value.GetType()));
        }
Beispiel #22
0
 public Class644(string A_0)
 {
     this.string_0   = A_0;
     this.class181_0 = new Class181(true);
     this.class181_1 = new Class181(false);
 }