Specialized Collections

Specialized Collections

Specialized collections are collections with highly specific purposes. NameValueCollection is based on NameObjectCollectionBase; however, NameValueCollection accepts multiple values per key, whereas NameObjectCollectionBase accepts only one value per key.

Other strongly typed collections in this namespace are StringCollection and StringDictionary, both of which contain values that are exclusively strings.

See Also

Grouping Data in Collections | System.Collections.Specialized Namespace

Show:
© 2016 Microsoft