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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It doesn’t exist in .NET, but you can emulate it using a
Listand theDistinctLINQ extension method, which should preserve the order of the underlyingList.