FactoryMethodBasedFactory.factory

See InstanceFactory interface

class FactoryMethodBasedFactory(T, string method, W, Args...)
Z
factory
()
if (
(
is(W : T)
)
&&
isMethodCompatible!(T, method, Args)
&&
isAggregateType!(ReturnType!(getCompatibleOverload!(T, method, Args)))
)

Return Value

Type: Z

Z created object

Throws

InvalidCastException when extracted data by reference, is not of type expected by argument factory's method, or when factory is referenced, and the object referenced in locator is not of factory's type T.

Meta