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

Provides a read/write-through shim for another dictionary with the desired case sensitivity access. More...

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

Public Member Functions

 CaseWarpingDictionaryWrapper (IDictionary< string, TValue > actual)
 Constructs a CaseWarpingDictionaryWrapper around the provided actual dictionary with no case-warping.
 
 CaseWarpingDictionaryWrapper (IDictionary< string, TValue > actual, bool caseInsensitive)
 Constructs a CaseWarpingDictionaryWrapper around the provided actual dictionary with specified case sensitivity.
 
 CaseWarpingDictionaryWrapper (IDictionary< string, TValue > actual, StringComparer keyComparer)
 Constructs a CaseWarpingDictionaryWrapper around the provided actual dictionary with the provided StringComparer used to look up keys.
 
IEnumerator< KeyValuePair< string, TValue > > GetEnumerator ()
 
void Add (KeyValuePair< string, TValue > item)
 
void Add (string key, TValue value)
 
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)
 
bool Remove (string key)
 
bool TryGetValue (string key, out TValue value)
 

Properties

ICollection< stringKeys [get]
 
ICollection< TValueValues [get]
 
StringComparer Comparer [get]
 Provides read-only access to the StringComparer used to match keys.
 
int Count [get]
 
bool IsReadOnly [get]
 
TValue this[string key] [get, set]
 

Detailed Description

Provides a read/write-through shim for another dictionary with the desired case sensitivity access.

Template Parameters
TValue

Constructor & Destructor Documentation

◆ CaseWarpingDictionaryWrapper() [1/3]

Constructs a CaseWarpingDictionaryWrapper around the provided actual dictionary with no case-warping.

Parameters
actual

◆ CaseWarpingDictionaryWrapper() [2/3]

Constructs a CaseWarpingDictionaryWrapper around the provided actual dictionary with specified case sensitivity.

Parameters
actual
caseInsensitive

◆ CaseWarpingDictionaryWrapper() [3/3]

Constructs a CaseWarpingDictionaryWrapper around the provided actual dictionary with the provided StringComparer used to look up keys.

Parameters
actual
keyComparer

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