-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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user