-Refactored dynamic type wrapping

-Improved KeyValuePairConverter performance
This commit is contained in:
James Newton-King
2014-06-20 19:03:36 +12:00
parent 6b08fbc2fa
commit 9203e97312
20 changed files with 316 additions and 478 deletions
@@ -160,6 +160,7 @@ namespace Newtonsoft.Json.Utilities
#endif
};
#if !(NETFX_CORE || PORTABLE)
private static readonly List<TypeInformation> PrimitiveTypeCodes = new List<TypeInformation>
{
new TypeInformation { Type = typeof(object), TypeCode = PrimitiveTypeCode.Empty },
@@ -182,6 +183,7 @@ namespace Newtonsoft.Json.Utilities
new TypeInformation { Type = typeof(object), TypeCode = PrimitiveTypeCode.Empty }, // no 17 in TypeCode for some reason
new TypeInformation { Type = typeof(string), TypeCode = PrimitiveTypeCode.String }
};
#endif
public static PrimitiveTypeCode GetTypeCode(Type t)
{