mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
fix: Dammit Jeff
This commit is contained in:
@@ -71,8 +71,12 @@ namespace ICD.Common.Utils.Json
|
|||||||
|
|
||||||
string itemString = (string)token.SelectToken(ITEM_TOKEN);
|
string itemString = (string)token.SelectToken(ITEM_TOKEN);
|
||||||
Type type = Type.GetType(typeString);
|
Type type = Type.GetType(typeString);
|
||||||
|
|
||||||
if (type == null)
|
if (type == null)
|
||||||
|
{
|
||||||
typeString = AddSimplSharpSuffix(typeString);
|
typeString = AddSimplSharpSuffix(typeString);
|
||||||
|
type = Type.GetType(typeString);
|
||||||
|
}
|
||||||
|
|
||||||
return JsonConvert.DeserializeObject(itemString, type);
|
return JsonConvert.DeserializeObject(itemString, type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user