docs.unity.cn
    Show / Hide Table of Contents

    Class ListPropertyBag<TElement>

    A IPropertyBag<TContainer> implementation for a List<T> type.

    Inheritance
    Object
    PropertyBag<List<TElement>>
    IndexedCollectionPropertyBag<List<TElement>, TElement>
    ListPropertyBag<TElement>
    Inherited Members
    IndexedCollectionPropertyBag<List<TElement>, TElement>.GetProperties()
    IndexedCollectionPropertyBag<List<TElement>, TElement>.GetProperties(List<TElement>)
    IndexedCollectionPropertyBag<List<TElement>, TElement>.TryGetProperty(List<TElement>, Int32, IProperty<List<TElement>>)
    IndexedCollectionPropertyBag<List<TElement>, TElement>.ICollectionPropertyBagAccept<List<TElement>>.Accept(ICollectionPropertyBagVisitor, List<TElement>)
    IndexedCollectionPropertyBag<List<TElement>, TElement>.IListPropertyBagAccept<List<TElement>>.Accept(IListPropertyBagVisitor, List<TElement>)
    IndexedCollectionPropertyBag<List<TElement>, TElement>.IListPropertyAccept<List<TElement>>.Accept<TContainer>(IListPropertyVisitor, Property<TContainer, List<TElement>>, TContainer, List<TElement>)
    IndexedCollectionPropertyBag<List<TElement>, TElement>.InstantiateWithCount(Int32)
    PropertyBag<List<TElement>>.Accept(ITypeVisitor)
    PropertyBag<List<TElement>>.IPropertyBag.Accept(IPropertyBagVisitor, Object)
    PropertyBag<List<TElement>>.IPropertyBag<List<TElement>>.Accept(IPropertyBagVisitor, List<TElement>)
    PropertyBag<List<TElement>>.IPropertyBag<List<TElement>>.GetProperties()
    PropertyBag<List<TElement>>.IPropertyBag<List<TElement>>.GetProperties(List<TElement>)
    PropertyBag<List<TElement>>.GetProperties()
    PropertyBag<List<TElement>>.GetProperties(List<TElement>)
    PropertyBag<List<TElement>>.CreateInstance()
    PropertyBag<List<TElement>>.TryCreateInstance(List<TElement>)
    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 ListPropertyBag<TElement> : IndexedCollectionPropertyBag<List<TElement>, TElement>, IPropertyBagRegister, IConstructor<List<TElement>>, IListPropertyBag<List<TElement>, TElement>, ICollectionPropertyBag<List<TElement>, TElement>, IPropertyBag<List<TElement>>, IPropertyBag, ICollectionPropertyBagAccept<List<TElement>>, IListPropertyBagAccept<List<TElement>>, IListPropertyAccept<List<TElement>>, IIndexedProperties<List<TElement>>, IConstructorWithCount<List<TElement>>, IConstructor, IIndexedCollectionPropertyBagEnumerator<List<TElement>>
    Type Parameters
    Name Description
    TElement

    The element 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.List<TElement>>.InstantiationKind

    Methods

    Instantiate()

    Implement this method to provide custom type instantiation for the container type.

    Declaration
    protected override List<TElement> Instantiate()
    Returns
    Type Description
    List<TElement>

    A new instance of .

    Overrides
    Unity.Properties.PropertyBag<System.Collections.Generic.List<TElement>>.Instantiate()
    Remarks

    You MUST also override InstantiationKind to return langword_csharp_ConstructionType.PropertyBagOverride for this method to be called.

    InstantiateWithCount(Int32)

    Implement this method to provide custom type instantiation with a count value for the container type.

    Declaration
    protected override List<TElement> InstantiateWithCount(int count)
    Parameters
    Type Name Description
    Int32 count

    The requested capacity.

    Returns
    Type Description
    List<TElement>

    A new instance of .

    Overrides
    Unity.Properties.IndexedCollectionPropertyBag<System.Collections.Generic.List<TElement>, TElement>.InstantiateWithCount(System.Int32)
    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