Does HashSet preserve insertion order?

This HashSet MSDN page specifically says:

A set is a collection that contains no duplicate elements, and whose elements are in no particular order.

Leave a Comment