The generic, common factory interface for declaring factories creating arbitrary object instances requiring up to two arguments. Use a container type such as Tuple or struct as second parameter TIn2 if more parameters are required.
More...
|
TInstance | Create (TIn1 parameter) |
|
TInstance | Create (TIn1 parameter, TIn2 parameterSet=default(TIn2)) |
| Creates new TInstance instances dependent on the parameter type TIn1 and optionally Type TIn2 More...
|
|
The generic, common factory interface for declaring factories creating arbitrary object instances requiring up to two arguments. Use a container type such as Tuple or struct as second parameter TIn2 if more parameters are required.
- Template Parameters
-
Definition at line 20 of file IFactory.cs.
TInstance Core.TypeCast.IFactory< out out TInstance, in in TIn1, in in TIn2 >.Create |
( |
TIn1 |
parameter, |
|
|
TIn2 |
parameterSet = default(TIn2) |
|
) |
| |
Creates new TInstance instances dependent on the parameter type TIn1 and optionally Type TIn2
- Parameters
-
parameter | The 1. parameter of Type TIn1 defining instance creation. |
parameterSet | The 2. optional set of parameters or single parameter of Type TIn2 defining instance creation. |
- Returns
- Returns a new instance of TInstance upon success
The documentation for this interface was generated from the following file: