Is there an equivalent of std::set in C#?

Posted by Danvil on Stack Overflow See other posts from Stack Overflow or by Danvil
Published on 2010-04-17T14:55:40Z Indexed on 2010/04/17 15:03 UTC
Read the original article Hit count: 277

Filed under:

I would like to have a container

StdStyleSet<A>

of

class A : IComparable<A> { ... }

which satisfies the properties of std::set. This would especially be:

  • The elements themselve are the keys
  • Automatically sorted on insertion

© Stack Overflow or respective owner

Related posts about c#