PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.Dictionaries.DictionaryWrappingNameValueCollection< TValue > Class Template Reference

Provides a convenient IDictionary wrapper for NameValueCollections. More...

Inheritance diagram for PeanutButter.Utils.Dictionaries.DictionaryWrappingNameValueCollection< TValue >:

Public Member Functions

 DictionaryWrappingNameValueCollection (NameValueCollection data, bool caseInsensitive)
 
 DictionaryWrappingNameValueCollection (NameValueCollection data)
 
 DictionaryWrappingNameValueCollection (NameValueCollection data, StringComparer comparer)
 
 DictionaryWrappingNameValueCollection (NameValueCollection data, bool caseInsensitive)
 Construct this dictionary with a NameValueCollection to wrap, specifying whether or not key lookups are to be case-sensitive.
 
 DictionaryWrappingNameValueCollection (NameValueCollection data)
 Construct this dictionary with a NameValueCollection to wrap.
 
 DictionaryWrappingNameValueCollection (NameValueCollection data, StringComparer comparer)
 Construct this dictionary with a NameValueCollection to wrap, specifying the StringComparer to use when comparing requested keys with available keys.
 
IEnumerator< KeyValuePair< string, TValue > > GetEnumerator ()
 
void Add (KeyValuePair< string, TValue > item)
 
void Clear ()
 
bool Contains (KeyValuePair< string, TValue > item)
 
void CopyTo (KeyValuePair< string, TValue >[] array, int arrayIndex)
 
bool Remove (KeyValuePair< string, TValue > item)
 
bool ContainsKey (string key)
 
void Add (string key, TValue value)
 
bool Remove (string key)
 
bool TryGetValue (string key, out TValue value)
 

Properties

StringComparer Comparer [get]
 Comparer to use for the keys of this dictionary.
 
int Count [get]
 
bool IsReadOnly [get]
 
TValue this[string key] [get, set]
 
ICollection< stringKeys [get]
 
ICollection< TValueValues [get]
 

Detailed Description

Provides a convenient IDictionary wrapper for NameValueCollections.

Wraps a NameValueCollection in an IDictionary interface.

Type Constraints
TValue :class 

Constructor & Destructor Documentation

◆ DictionaryWrappingNameValueCollection() [1/3]

Construct this dictionary with a NameValueCollection to wrap, specifying whether or not key lookups are to be case-sensitive.

Parameters
data
caseInsensitiveFlag: is this collection to treat keys case-insensitive?

◆ DictionaryWrappingNameValueCollection() [2/3]

Construct this dictionary with a NameValueCollection to wrap.

Parameters
data

◆ DictionaryWrappingNameValueCollection() [3/3]

Construct this dictionary with a NameValueCollection to wrap, specifying the StringComparer to use when comparing requested keys with available keys.

Parameters
data
comparer

The documentation for this class was generated from the following file: