Correct me if I am wrong, but I believe there are no set classes in C#, you can use enum type in C# to represent your values, and use one of those classes under System.Collections to simulate the concept of "set"But take a look at thisGeneric C# Sample Programs
http://www.dina.dk/~sestoft/gcsharp/the generics is coming! :-)

解决方案 »

  1.   

    Yes, Saucer provides a good way for this issue. And I'd like say, there is the Set in C#. Search the "interface IEnumerable" and "interface ICollection" from the help of the Visual Studio .Net, you can get what you want. ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfsystemcollectionsienumerableclasstopic.htm
    ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemCollectionsICollectionMembersTopic.htmI think I don't need to say more, If not, please let me know.
    ------------------------
        I like to teach a fish how to swim.