Skip to content

Commit

Permalink
Merge pull request #69 from adamsitnik/bugFix
Browse files Browse the repository at this point in the history
make sure hash sets are handled properly, fixes #68
  • Loading branch information
irmen authored May 15, 2019
2 parents 281671e + d97aa7b commit 3e715b6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ private bool dispatch(Type t, object o)
put_enumerable(v);
return true;
case IEnumerable v:
put_enumerable(v);
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(HashSet<>))
put_set(v);
else
put_enumerable(v);
return true;
}
}
Expand Down

0 comments on commit 3e715b6

Please sign in to comment.