mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
fix: Dammit Jeff
This commit is contained in:
parent
560d3c861d
commit
220e778a76
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue