CollectionCreatorFactory Class
Factory class to create Generic Collection Creators instances.
Namespace:
Xafari.BC.BusinessOperations.CollectionCreators
Assembly: Xafari.BC (in Xafari.BC.dll)
Name | Description | |
---|---|---|
![]() |
IsSupportedGenericCollection(Type) | Determines whether the specified type is generic collection type which is supported by the factory. |
![]() |
Make(Type) | Creates instance of Collection Creator based on specified the generic collection type. |
Name | Description | |
---|---|---|
![]() |
GetListValueByTerm<TDetails>(this object, string) | Obsolete. (Defined by TypeExtensions). |
![]() |
GetValueByTerm<TValue>(this object, string) | Obsolete. (Defined by TypeExtensions). |
![]() |
Session(this object, bool) | Obsolete. Returns Session for specified object. (Defined by SessionExtensions). |
![]() |
SetValueByTerm<TValue>(this object, string, TValue) | Obsolete. (Defined by TypeExtensions). |
This factory creates instances of appropriate Collection Creators (see ICollectionCreator, CollectionCreator). Concrete type of Collection Creator depends on the generic collection type, passed to the method Create.
Supported abstract generic types:
IEnumerable<T> |
ICollection<T> |
IList<T> |
Supported generic types:
HashSet<T> |
LinkedList<T> |
List<T> |
Queue<T> |
SortedSet<T> |
Stack<T> |
SynchronizedCollection<T> |
You may need to extend supported types list. To do this you should create custom class derived from this one and override its virtual method MakeCore(Type). After that you should override the factory method CreateCollectionCreatorFactoryCore() in a custom manager.
The factory is used to initialize a business operation context property.