Skip to content

Commit

Permalink
style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-montrose committed Mar 31, 2016
1 parent 6ff05ad commit 48ead40
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Jil/Deserialize/InlineDeserializer.cs
Expand Up @@ -1136,9 +1136,12 @@ void ReadList(MemberInfo listMember, Type listType, bool isSet)
{
listType = typeof(List<>).MakeGenericType(elementType);
}
else if (isSet && listType.GetGenericTypeDefinition() == typeof(ISet<>))
{
listType = typeof(HashSet<>).MakeGenericType(elementType);
else
{
if (isSet && listType.GetGenericTypeDefinition() == typeof(ISet<>))
{
listType = typeof(HashSet<>).MakeGenericType(elementType);
}
}
}

Expand Down

0 comments on commit 48ead40

Please sign in to comment.