Skip to content

Commit

Permalink
make sure hash sets are handled properly, fixes #68
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik committed May 15, 2019
1 parent 281671e commit d97aa7b
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 d97aa7b

Please sign in to comment.