Implements a strongly typed collection of NameValueEntry key-and-value pairs that retain their insertion order and are accessible by index and by key.

Namespace: CodeSmith.CustomProperties
Assembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
[SerializableAttribute]
[ObsoleteAttribute("The NameValueCollection has been deprecated, use the System.Collections.Generic.Dictionary<T,K> or System.Collections.Specialized.NameValueCollection instead.", 
	false)]
public class NameValueCollection : IStringStringList, 
	IStringStringCollection, IList, ICollection, IEnumerable, ICloneable
Visual Basic
<SerializableAttribute>
<ObsoleteAttribute("The NameValueCollection has been deprecated, use the System.Collections.Generic.Dictionary<T,K> or System.Collections.Specialized.NameValueCollection instead.", 
	false)> 
Public Class NameValueCollection
	Implements IStringStringList, IStringStringCollection, IList, ICollection, 
	IEnumerable, ICloneable

Remarks

NameValueCollection provides an ArrayList that is strongly typed for NameValueEntry elements and allows direct access to its String keys and String values.

The collection may contain multiple identical keys. All key access methods return the first occurrence of the specified key, if found. Access by index is an O(1) operation but access by key or value are both O(N) operations, where N is the current value of the Count property.

Inheritance Hierarchy

System..::..Object
  CodeSmith.CustomProperties..::..NameValueCollection

See Also