docs.unity.cn
    Show / Hide Table of Contents

    Class DictionaryPropertyBag<TKey, TValue>

    An IPropertyBag<TContainer> implementation for a Dictionary<TKey,TValue> type.

    Inheritance
    Object
    PropertyBag<Dictionary<TKey, TValue>>
    KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>
    DictionaryPropertyBag<TKey, TValue>
    Inherited Members
    KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>.GetProperties()
    KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>.GetProperties(Dictionary<TKey, TValue>)
    KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>.ICollectionPropertyBagAccept<Dictionary<TKey, TValue>>.Accept(ICollectionPropertyBagVisitor, Dictionary<TKey, TValue>)
    KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>.IDictionaryPropertyBagAccept<Dictionary<TKey, TValue>>.Accept(IDictionaryPropertyBagVisitor, Dictionary<TKey, TValue>)
    KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>.IDictionaryPropertyAccept<Dictionary<TKey, TValue>>.Accept<TContainer>(IDictionaryPropertyVisitor, Property<TContainer, Dictionary<TKey, TValue>>, TContainer, Dictionary<TKey, TValue>)
    KeyValueCollectionPropertyBag<Dictionary<TKey, TValue>, TKey, TValue>.IKeyedProperties<Dictionary<TKey, TValue>, Object>.TryGetProperty(Dictionary<TKey, TValue>, Object, IProperty<Dictionary<TKey, TValue>>)
    PropertyBag<Dictionary<TKey, TValue>>.Accept(ITypeVisitor)
    PropertyBag<Dictionary<TKey, TValue>>.IPropertyBag.Accept(IPropertyBagVisitor, Object)
    PropertyBag<Dictionary<TKey, TValue>>.IPropertyBag<Dictionary<TKey, TValue>>.Accept(IPropertyBagVisitor, Dictionary<TKey, TValue>)
    PropertyBag<Dictionary<TKey, TValue>>.IPropertyBag<Dictionary<TKey, TValue>>.GetProperties()
    PropertyBag<Dictionary<TKey, TValue>>.IPropertyBag<Dictionary<TKey, TValue>>.GetProperties(Dictionary<TKey, TValue>)
    PropertyBag<Dictionary<TKey, TValue>>.GetProperties()
    PropertyBag<Dictionary<TKey, TValue>>.GetProperties(Dictionary<TKey, TValue>)
    PropertyBag<Dictionary<TKey, TValue>>.InstantiationKind
    PropertyBag<Dictionary<TKey, TValue>>.Instantiate()
    PropertyBag<Dictionary<TKey, TValue>>.CreateInstance()
    PropertyBag<Dictionary<TKey, TValue>>.TryCreateInstance(Dictionary<TKey, TValue>)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, July 26, 2023