fix: Dammit Jeff

This commit is contained in:
Chris Cameron
2018-07-18 13:41:27 -04:00
parent 560d3c861d
commit 220e778a76

View File

@@ -71,8 +71,12 @@ namespace ICD.Common.Utils.Json
string itemString = (string)token.SelectToken(ITEM_TOKEN);
Type type = Type.GetType(typeString);
if (type == null)
{
typeString = AddSimplSharpSuffix(typeString);
type = Type.GetType(typeString);
}
return JsonConvert.DeserializeObject(itemString, type);
}