Class DictionaryPropertyBag<TKey, TValue>
An IPropertyBag<TContainer> implementation for a Dictionary<TKey,TValue> type.
Inheritance
PropertyBag<Dictionary<TKey, TValue>>
KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>
DictionaryPropertyBag<TKey, TValue>
Inherited Members
Namespace: Unity.Properties
Syntax
public class DictionaryPropertyBag<TKey, TValue> : KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>, IPropertyBagRegister, IConstructor<Dictionary<TKey, TValue>>, IConstructor, IDictionaryPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>, ICollectionPropertyBag<Dictionary<TKey, TValue>, KeyValuePair<TKey, TValue>>, IPropertyBag<Dictionary<TKey, TValue>>, IPropertyBag, ICollectionPropertyBagAccept<Dictionary<TKey, TValue>>, IDictionaryPropertyBagAccept<Dictionary<TKey, TValue>>, IDictionaryPropertyAccept<Dictionary<TKey, TValue>>, IKeyedProperties<Dictionary<TKey, TValue>, object>
Type Parameters
Name | Description |
---|---|
TKey | The key type. |
TValue | The value type. |
Properties
InstantiationKind
Implement this property and return true to provide custom type instantiation for the container type.
Declaration
protected override InstantiationKind InstantiationKind { get; }
Property Value
Type | Description |
---|---|
InstantiationKind |
Overrides
Unity.Properties.PropertyBag<System.Collections.Generic.Dictionary<TKey, TValue>>.InstantiationKind
Methods
Instantiate()
Implement this method to provide custom type instantiation for the container type.
Declaration
protected override Dictionary<TKey, TValue> Instantiate()
Returns
Type | Description |
---|---|
Dictionary<TKey, TValue> | A new instance of |
Overrides
Unity.Properties.PropertyBag<System.Collections.Generic.Dictionary<TKey, TValue>>.Instantiate()
Remarks
You MUST also override InstantiationKind to return langword_csharp_ConstructionType.PropertyBagOverride for this method to be called.