docs.unity.cn
    Show / Hide Table of Contents

    Class ArrayPropertyBag<TElement>

    An IPropertyBag<TContainer> implementation for a built in array of TElement.

    Inheritance
    Object
    PropertyBag<TElement[]>
    IndexedCollectionPropertyBag<TElement[], TElement>
    ArrayPropertyBag<TElement>
    Inherited Members
    IndexedCollectionPropertyBag<TElement[], TElement>.GetProperties()
    IndexedCollectionPropertyBag<TElement[], TElement>.GetProperties(TElement[])
    IndexedCollectionPropertyBag<TElement[], TElement>.TryGetProperty(TElement[], Int32, IProperty<TElement[]>)
    IndexedCollectionPropertyBag<TElement[], TElement>.ICollectionPropertyBagAccept<TElement[]>.Accept(ICollectionPropertyBagVisitor, TElement[])
    IndexedCollectionPropertyBag<TElement[], TElement>.IListPropertyBagAccept<TElement[]>.Accept(IListPropertyBagVisitor, TElement[])
    IndexedCollectionPropertyBag<TElement[], TElement>.IListPropertyAccept<TElement[]>.Accept<TContainer>(IListPropertyVisitor, Property<TContainer, TElement[]>, TContainer, TElement[])
    IndexedCollectionPropertyBag<TElement[], TElement>.InstantiateWithCount(Int32)
    PropertyBag<TElement[]>.Accept(ITypeVisitor)
    PropertyBag<TElement[]>.IPropertyBag.Accept(IPropertyBagVisitor, Object)
    PropertyBag<TElement[]>.IPropertyBag<TElement[]>.Accept(IPropertyBagVisitor, TElement[])
    PropertyBag<TElement[]>.IPropertyBag<TElement[]>.GetProperties()
    PropertyBag<TElement[]>.IPropertyBag<TElement[]>.GetProperties(TElement[])
    PropertyBag<TElement[]>.GetProperties()
    PropertyBag<TElement[]>.GetProperties(TElement[])
    PropertyBag<TElement[]>.InstantiationKind
    PropertyBag<TElement[]>.Instantiate()
    PropertyBag<TElement[]>.CreateInstance()
    PropertyBag<TElement[]>.TryCreateInstance(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 sealed class ArrayPropertyBag<TElement> : IndexedCollectionPropertyBag<TElement[], TElement>, IPropertyBagRegister, IConstructor<TElement[]>, IListPropertyBag<TElement[], TElement>, ICollectionPropertyBag<TElement[], TElement>, IPropertyBag<TElement[]>, IPropertyBag, ICollectionPropertyBagAccept<TElement[]>, IListPropertyBagAccept<TElement[]>, IListPropertyAccept<TElement[]>, IIndexedProperties<TElement[]>, IConstructorWithCount<TElement[]>, IConstructor, IIndexedCollectionPropertyBagEnumerator<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<TElement[]>.InstantiationKind

    Methods

    Instantiate()

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

    Declaration
    protected override TElement[] Instantiate()
    Returns
    Type Description
    TElement[]

    A new instance of .

    Overrides
    Unity.Properties.PropertyBag<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 TElement[] InstantiateWithCount(int count)
    Parameters
    Type Name Description
    Int32 count

    The requested capacity.

    Returns
    Type Description
    TElement[]

    A new instance of .

    Overrides
    Unity.Properties.IndexedCollectionPropertyBag<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