-Added Newtonsoft.Json.Metro build (whew, what a pain!)

-Added .gitignore file
This commit is contained in:
James Newton-King
2012-03-15 18:34:51 +13:00
parent f9e5745425
commit 5800e97ff3
141 changed files with 3921 additions and 1097 deletions
@@ -92,16 +92,20 @@ namespace Newtonsoft.Json.Serialization
{
CreatedType = ReflectionUtils.MakeGenericType(typeof(Dictionary<,>), keyType, valueType);
}
#if !NETFX_CORE
else if (UnderlyingType == typeof(IDictionary))
{
CreatedType = typeof (Dictionary<object, object>);
}
#endif
}
internal IWrappedDictionary CreateWrapper(object dictionary)
{
#if !NETFX_CORE
if (dictionary is IDictionary && (DictionaryValueType == null || !_isDictionaryValueTypeNullableType))
return new DictionaryWrapper<object, object>((IDictionary)dictionary);
#endif
if (_genericWrapperCreator == null)
{
@@ -116,7 +120,7 @@ namespace Newtonsoft.Json.Serialization
private bool IsTypeGenericDictionaryInterface(Type type)
{
if (!type.IsGenericType)
if (!type.IsGenericType())
return false;
Type genericDefinition = type.GetGenericTypeDefinition();