-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
+2 -2
View File
@@ -625,7 +625,7 @@ namespace Newtonsoft.Json
}
}
newObject = Activator.CreateInstance(objectType, constructorParameters.Values.ToArray());
newObject = ReflectionUtils.CreateInstance(objectType, constructorParameters.Values.ToArray());
return newObject;
}
@@ -804,7 +804,7 @@ namespace Newtonsoft.Json
{
Type objectType = value.GetType();
#if !SILVERLIGHT
#if !SILVERLIGHT && !PocketPC
TypeConverter converter = TypeDescriptor.GetConverter(objectType);
// use the objectType's TypeConverter if it has one and can convert to a string