|
-
Oct 7th, 2011, 06:49 AM
#6
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
Last edited by boops boops; Oct 7th, 2011 at 07:02 AM.
Reason: there I go, editing again...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|