|
PeanutButter
|
Wraps an object in a dictionary interface. More...
Public Member Functions | |||
| object | Unwrap () | ||
Unwrap the wrapped object as a plain old object.
| |||
| T | Unwrap< T > () | ||
Unwrap the wrapped object with a hard cast to T (buyer beware!)
| |||
| bool | TryUnwrap< T > (out T result) | ||
Attempts to unwrap a wrapped value.
| |||
| DictionaryWrappingObject (object wrapped) | |||
| Provides a mechanism to reflectively read and write members on an object via an IDictionary<string, object> interface. | |||
| DictionaryWrappingObject (object wrapped, StringComparer keyComparer) | |||
| Provides a mechanism to reflectively read and write members on an object via an IDictionary<string, object> interface with keys matched by the provided keyComparer. | |||
| DictionaryWrappingObject (object wrapped, WrapOptions options) | |||
| Provides a mechanism to reflectively read members on an object via an IDictionary<string, object> interface where the keyComparer used is StringComparer.Ordinal. | |||
| DictionaryWrappingObject (object wrapped, StringComparer keyComparer, WrapOptions options) | |||
| Provides a mechanism to reflectively read members on an object via an IDictionary<string, object> interface. | |||
| IEnumerator< KeyValuePair< string, object > > | GetEnumerator () | ||
| void | Add (KeyValuePair< string, object > item) | ||
| void | Clear () | ||
| bool | Contains (KeyValuePair< string, object > item) | ||
| void | CopyTo (KeyValuePair< string, object >[] array, int arrayIndex) | ||
| bool | Remove (KeyValuePair< string, object > item) | ||
| bool | ContainsKey (string key) | ||
| void | Add (string key, object value) | ||
| bool | Remove (string key) | ||
| bool | TryGetValue (string key, out object value) | ||
Properties | |
| StringComparer | Comparer [get] |
| The string comparer used to locate keys. | |
| int | Count [get] |
| bool | IsReadOnly [get] |
| object | this[string key] [get, set] |
| ICollection< string > | Keys [get] |
| ICollection< object > | Values [get] |
Wraps an object in a dictionary interface.
| PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.DictionaryWrappingObject | ( | object | wrapped | ) |
Provides a mechanism to reflectively read and write members on an object via an IDictionary<string, object> interface.
| wrapped |
| PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.DictionaryWrappingObject | ( | object | wrapped, |
| StringComparer | keyComparer | ||
| ) |
Provides a mechanism to reflectively read and write members on an object via an IDictionary<string, object> interface with keys matched by the provided keyComparer.
| wrapped | |
| keyComparer |
| PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.DictionaryWrappingObject | ( | object | wrapped, |
| WrapOptions | options | ||
| ) |
Provides a mechanism to reflectively read members on an object via an IDictionary<string, object> interface where the keyComparer used is StringComparer.Ordinal.
| wrapped | |
| options |
| PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.DictionaryWrappingObject | ( | object | wrapped, |
| StringComparer | keyComparer, | ||
| WrapOptions | options | ||
| ) |
Provides a mechanism to reflectively read members on an object via an IDictionary<string, object> interface.
| wrapped | |
| keyComparer | Specify the key-comparer to use when reaching into objects
|
| options | Specific options for this wrapping |
Attempts to unwrap a wrapped value.
| T |
Implements PeanutButter.Utils.Dictionaries.IWrapper.
| object PeanutButter.Utils.Dictionaries.DictionaryWrappingObject.Unwrap | ( | ) |
Unwrap the wrapped object as a plain old object.
Implements PeanutButter.Utils.Dictionaries.IWrapper.
Unwrap the wrapped object with a hard cast to T (buyer beware!)
| T |
Implements PeanutButter.Utils.Dictionaries.IWrapper.