private static void IntializeClassicalTypesConvertes() { var nullableBoolConverter = new JsonTwitterNullableConverter <bool>(); var nullableLongConverter = new JsonTwitterNullableConverter <long>(); var nullableIntegerConverter = new JsonTwitterNullableConverter <int>(); var nullableDoubleConverter = new JsonTwitterNullableConverter <double>(); var dateTimeConverter = new JsonTwitterDateTimeConverter(); JsonConverters.Add(typeof(bool), nullableBoolConverter); JsonConverters.Add(typeof(long), nullableLongConverter); JsonConverters.Add(typeof(int), nullableIntegerConverter); JsonConverters.Add(typeof(double), nullableDoubleConverter); JsonConverters.Add(typeof(DateTime), dateTimeConverter); }
private static void IntializeClassicalTypesConvertes() { var nullableBoolConverter = new JsonTwitterNullableConverter<bool>(); var nullableLongConverter = new JsonTwitterNullableConverter<long>(); var nullableIntegerConverter = new JsonTwitterNullableConverter<int>(); var nullableDoubleConverter = new JsonTwitterNullableConverter<double>(); var dateTimeConverter = new JsonTwitterDateTimeConverter(); JsonConverters.Add(typeof(bool), nullableBoolConverter); JsonConverters.Add(typeof(long), nullableLongConverter); JsonConverters.Add(typeof(int), nullableIntegerConverter); JsonConverters.Add(typeof(double), nullableDoubleConverter); JsonConverters.Add(typeof(DateTime), dateTimeConverter); }