Difference between HashSet.IsSuperSetOf and IsProperSuperSetOf?

c#, hashset

Solution

You can think of it like the difference between `>` and `>=`. IsSuperSetOf is doing something like `>=`, so your set could have exactly the same elements that are in the set you're comparing to. By contrast, a proper super set is kind of like `>` and has extra elements that the second set doesn't have.

For example, a set is a superset of itself, but it's not a proper superset of itself.

Problem

MSDN documentation of both methods looks very similar. Also the example cited beneath the remarks for `IsSupersetOf` is not very helpful either. Can someone please explain to me the difference using simple language?

Original source