docs.unity3d.com
    Show / Hide Table of Contents

    Class KeyValuePairPropertyBag<TKey, TValue>

    A IPropertyBag<TContainer> implementation for a generic key/value pair.

    Inheritance
    Object
    PropertyBag<KeyValuePair<TKey, TValue>>
    KeyValuePairPropertyBag<TKey, TValue>
    Inherited Members
    PropertyBag<KeyValuePair<TKey, TValue>>.Accept(ITypeVisitor)
    PropertyBag<KeyValuePair<TKey, TValue>>.IPropertyBag.Accept(IPropertyBagVisitor, Object)
    PropertyBag<KeyValuePair<TKey, TValue>>.IPropertyBag<KeyValuePair<TKey, TValue>>.Accept(IPropertyBagVisitor, KeyValuePair<TKey, TValue>)
    PropertyBag<KeyValuePair<TKey, TValue>>.IPropertyBag<KeyValuePair<TKey, TValue>>.GetProperties()
    PropertyBag<KeyValuePair<TKey, TValue>>.IPropertyBag<KeyValuePair<TKey, TValue>>.GetProperties(KeyValuePair<TKey, TValue>)
    PropertyBag<KeyValuePair<TKey, TValue>>.GetProperties()
    PropertyBag<KeyValuePair<TKey, TValue>>.GetProperties(KeyValuePair<TKey, TValue>)
    PropertyBag<KeyValuePair<TKey, TValue>>.InstantiationKind
    PropertyBag<KeyValuePair<TKey, TValue>>.Instantiate()
    PropertyBag<KeyValuePair<TKey, TValue>>.CreateInstance()
    PropertyBag<KeyValuePair<TKey, TValue>>.TryCreateInstance(KeyValuePair<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 KeyValuePairPropertyBag<TKey, TValue> : PropertyBag<KeyValuePair<TKey, TValue>>, IPropertyBag<KeyValuePair<TKey, TValue>>, IPropertyBag, IPropertyBagRegister, IConstructor<KeyValuePair<TKey, TValue>>, IConstructor, INamedProperties<KeyValuePair<TKey, TValue>>
    Type Parameters
    Name Description
    TKey

    The key type.

    TValue

    The value type.

    Methods

    GetProperties()

    Returns an enumerator that iterates through all static properties for the type.

    Declaration
    public override PropertyCollection<KeyValuePair<TKey, TValue>> GetProperties()
    Returns
    Type Description
    PropertyCollection<KeyValuePair<TKey, TValue>>

    A IEnumerator<T> structure for all properties.

    Overrides
    Unity.Properties.PropertyBag<System.Collections.Generic.KeyValuePair<TKey, TValue>>.GetProperties()
    Remarks

    This should return a subset properties returned by GetProperties(ref TContainer).

    GetProperties(ref KeyValuePair<TKey, TValue>)

    Returns an enumerator that iterates through all static and dynamic properties for the given container.

    Declaration
    public override PropertyCollection<KeyValuePair<TKey, TValue>> GetProperties(ref KeyValuePair<TKey, TValue> container)
    Parameters
    Type Name Description
    KeyValuePair<TKey, TValue> container
    Returns
    Type Description
    PropertyCollection<KeyValuePair<TKey, TValue>>

    A IEnumerator<T> structure for all properties.

    Overrides
    Unity.Properties.PropertyBag<System.Collections.Generic.KeyValuePair<TKey, TValue>>.GetProperties(System.Collections.Generic.KeyValuePair<TKey, TValue>)
    Remarks

    This should return all static properties returned by GetProperties() in addition to any dynamic properties. If the container is a collection type all elements will be iterated.

    TryGetProperty(ref KeyValuePair<TKey, TValue>, String, out IProperty<KeyValuePair<TKey, TValue>>)

    Gets the property associated with the specified name.

    Declaration
    public bool TryGetProperty(ref KeyValuePair<TKey, TValue> container, string name, out IProperty<KeyValuePair<TKey, TValue>> property)
    Parameters
    Type Name Description
    KeyValuePair<TKey, TValue> container

    The container hosting the data.

    String name

    The name of the property to get.

    IProperty<KeyValuePair<TKey, TValue>> property

    When this method returns, contains the property associated with the specified name, if the name is found; otherwise, null.

    Returns
    Type Description
    Boolean

    true if the INamedProperties<TContainer> contains a property with the specified name; otherwise, false.

    Implements
    INamedProperties<TContainer>.TryGetProperty(ref TContainer, String, out IProperty<TContainer>)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023