|
-
Mar 27th, 2015, 01:54 PM
#4
Re: Need help with operators for list of string
No, not exactly. I'd also recommend using one of the others, as I find them to be more clear, and they will likely have somewhat better performance.
An item in a List(of String) is a String. An item in a dictionary, regardless of type, is a key,value pair. Most likely, the comparison you'd want would be different from comparing key,value pairs. You might compare the keys, or both the keys and the values that go with the keys (do the two have the same set of keys, and if so, do they have the same values for the same keys).
Also note that, if there is any chance that the two collections might be different lengths, comparing the lengths as a first step is a quick and easy thing to check first.
My usual boring signature: Nothing
 
Tags for this Thread
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
|