You do not need to implement your own HashSet
for that, just use the native UnionWith
extension method.
.NET - AddRange for HashSet

WRITTEN BY
Victor Zakharov
Web Developer (Angular/.NET)
You do not need to implement your own HashSet
for that, just use the native UnionWith
extension method.