updated SimpleJson to 0.30.0

This commit is contained in:
Brendan Forster
2014-01-23 14:49:35 -08:00
parent f69404cd03
commit 09a0ea6c56
8 changed files with 34 additions and 52 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Octokit.Reflection;
namespace Octokit.Internal
{
@@ -64,15 +65,6 @@ namespace Octokit.Internal
var stringValue = value as string;
if (stringValue != null)
{
if (ReflectionUtils.IsUri(type))
{
Uri result;
if (Uri.TryCreate(stringValue, UriKind.RelativeOrAbsolute, out result))
{
return result;
}
}
if (ReflectionUtils.GetTypeInfo(type).IsEnum)
{
// remove '-' from values coming in to be able to enum utf-8