-Fixed deserializing relative Uris
This commit is contained in:
@@ -330,7 +330,7 @@ namespace Newtonsoft.Json.Utilities
|
||||
if (targetType == typeof (Guid))
|
||||
return new Guid((string) initialValue);
|
||||
if (targetType == typeof (Uri))
|
||||
return new Uri((string) initialValue);
|
||||
return new Uri((string) initialValue, UriKind.RelativeOrAbsolute);
|
||||
if (targetType == typeof (TimeSpan))
|
||||
#if !(NET35 || NET20 || SILVERLIGHT || PORTABLE)
|
||||
return TimeSpan.Parse((string) initialValue, CultureInfo.InvariantCulture);
|
||||
|
||||
Reference in New Issue
Block a user