Class Dictionary
- Namespace
- Dynamitey.DynamicObjects
- Assembly
- Dynamitey.Community.dll
Similar to Expando Objects but handles null values when the property is defined with an impromptu interface
public class Dictionary : BaseDictionary, IDynamicMetaObjectProvider, IEquivalentType, INotifyPropertyChanged, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
- Inheritance
-
Dictionary
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Dictionary()
Initializes a new instance of the Dictionary class.
[RequiresDynamicCode("Constructing any BaseObject-derived type instantiates System.Dynamic.DynamicObject, whose default constructor requires the DLR's runtime code generation; not supported when AOT-compiled.")]
public Dictionary()
Dictionary(IEnumerable<KeyValuePair<string, object>>)
Initializes a new instance of the Dictionary class.
[RequiresDynamicCode("Constructing any BaseObject-derived type instantiates System.Dynamic.DynamicObject, whose default constructor requires the DLR's runtime code generation; not supported when AOT-compiled.")]
public Dictionary(IEnumerable<KeyValuePair<string, object>> dict)
Parameters
dictIEnumerable<KeyValuePair<string, object>>The dict.
Properties
Count
Gets the count.
public int Count { get; }
Property Value
- int
The count.
this[string]
Gets or sets the object with the specified key.
public object this[string key] { get; set; }
Parameters
keystring
Property Value
Methods
Clear()
Clears this instance.
public void Clear()
GetEnumerator()
Gets the enumerator.
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()