Class HashSetPropertyBag<TElement>
An IPropertyBag<TContainer> implementation for a HashSet<T> type.
Inheritance
PropertyBag<HashSet<TElement>>
SetPropertyBagBase<HashSet<TElement>, TElement>
HashSetPropertyBag<TElement>
Inherited Members
Namespace: Unity.Properties
Syntax
public class HashSetPropertyBag<TElement> : SetPropertyBagBase<HashSet<TElement>, TElement>, IPropertyBagRegister, IConstructor<HashSet<TElement>>, IConstructor, ISetPropertyBag<HashSet<TElement>, TElement>, ICollectionPropertyBag<HashSet<TElement>, TElement>, IPropertyBag<HashSet<TElement>>, IPropertyBag, ICollectionPropertyBagAccept<HashSet<TElement>>, ISetPropertyBagAccept<HashSet<TElement>>, ISetPropertyAccept<HashSet<TElement>>, IKeyedProperties<HashSet<TElement>, object>
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.HashSet<TElement>>.InstantiationKind
Methods
Instantiate()
Implement this method to provide custom type instantiation for the container type.
Declaration
protected override HashSet<TElement> Instantiate()
Returns
Type | Description |
---|---|
HashSet<TElement> | A new instance of |
Overrides
Unity.Properties.PropertyBag<System.Collections.Generic.HashSet<TElement>>.Instantiate()
Remarks
You MUST also override InstantiationKind to return langword_csharp_ConstructionType.PropertyBagOverride for this method to be called.