Set collection preserving insertion order

.net, collections, set

Solution

It doesn't exist in .NET, but you can emulate it using a `List` and the `Distinct` LINQ extension method, which should preserve the order of the underlying `List`.

Problem

I need a collection that behaves as Set and preserves order of element insertion. Is there one or I'll have to implement it myself? What would the best implementation be?

Original source