CollectionCreatorFactory Class

Factory class to create Generic Collection Creators instances.

Namespace: Xafari.BC.BusinessOperations.CollectionCreators
Assembly: Xafari.BC (in Xafari.BC.dll)

  • c#
  • VB

public class CollectionCreatorFactory : ICollectionCreatorFactory

Public Class CollectionCreatorFactory
  Implements ICollectionCreatorFactory
End Class

Name Description
msdn2017/pubmethod IsSupportedGenericCollection(Type) Determines whether the specified type is generic collection type which is supported by the factory.
msdn2017/pubmethod Make(Type) Creates instance of Collection Creator based on specified the generic collection type.
Top

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.

Xafari.BC.BusinessOperations.CollectionCreators.CollectionCreatorFactory

.NET Framework Client Profile

Supported in: 4, 3.5 SP1