Results 1 to 12 of 12

Thread: [RESOLVED] Set Equals, does it exist?

Threaded View

  1. #6
    PowerPoster boops boops's Avatar
    Join Date
    Nov 2008
    Location
    Holland/France
    Posts
    3,201

    Re: Set Equals, does it exist?

    Hold the press! After editing my previous post several times, it came back to me: I suggest you look at the SortedSet(T) class. You can initialize it from any IEnumerable collection, and it has a SetEquals method (as well as Intersects, IsSubsetOf, Is SupersetOf and much else). I stumbled across SortedSet in msdn a few weeks ago, and it was at the back of my mind when I first replied but I couldn't remember what it was called.

    By the way, if the items in the collection don't have to be unique, you might find the HashSet(T).SetEquals method useful.

    p.s. I just searched msdn for SetEquals. Why didn't anyone think of that?
    BB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width