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

Wraps a NameValueCollection in an IDictionary interface. More...

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

Public Member Functions

 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< string > Keys [get]
ICollection< TValue > Values [get]

Detailed Description

Wraps a NameValueCollection in an IDictionary interface.

Type Constraints
TValue :class 

Member Function Documentation

◆ DictionaryWrappingNameValueCollection() [1/3]

Construct this dictionary with a NameValueCollection to wrap.

Parameters
data

◆ DictionaryWrappingNameValueCollection() [2/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() [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:
  • source/Utils/PeanutButter.Utils/Dictionaries/DictionaryWrappingNameValueCollection.cs