Class ArrayPropertyBag<TElement>
An IPropertyBag<TContainer> implementation for a built in array of TElement
.
Inheritance
PropertyBag<TElement[]>
IndexedCollectionPropertyBag<TElement[], TElement>
ArrayPropertyBag<TElement>
Inherited Members
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.