-Added compact framework support

-Refactored JavaScriptConvert to not rely on DateTimeOffset when converting dates
-Refactored JsonSerializer to use new CreateInstance on ReflectionUtils
-Deleted JsonHandler
This commit is contained in:
JamesNK
2008-09-21 10:23:55 +00:00
parent e8654d8c03
commit 33c2d69b54
25 changed files with 960 additions and 210 deletions
@@ -523,7 +523,7 @@ namespace Newtonsoft.Json.Utilities
if (listType.IsArray)
list = ToArray(((List<object>)list).ToArray(), ReflectionUtils.GetCollectionItemType(listType));
else if (ReflectionUtils.InheritsGenericClassDefinition(listType, typeof(ReadOnlyCollection<>)))
list = (IList)Activator.CreateInstance(listType, list);
list = (IList)ReflectionUtils.CreateInstance(listType, list);
}
return list;