2
What’s the difference in using Dictionary<string, string>
and NameValueCollection
?
I researched, but only found in English in the same Sopt, I used the translator, but the translation became strange and did not understand.
2
What’s the difference in using Dictionary<string, string>
and NameValueCollection
?
I researched, but only found in English in the same Sopt, I used the translator, but the translation became strange and did not understand.
2
The only thing you need to know is: don’t use NameValueCollection
. Specialized collections are virtually obsolete. They were needed for C# 1.0, with the advent of generic collections, use them instead. The specialized ones do not receive more affection, they are probably outdated. It goes from Dictionary
.
There is a difference, since the second is a multi map allowing to have multiple values with the same key. But if you need it, and you don’t usually need it, then you want to use the Lookup
.
Browser other questions tagged c# .net dictionary collection
You are not signed in. Login or sign up in order to post.