.NET Portable TypeCast  3.1.0.4
A, easy-to-use tested, generic, portable, runtime-extensible, arbitrary type converter library
Core.TypeCast.IFactory< out out TInstance, in in TIn1, in in TIn2 > Interface Template Reference

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...

+ Collaboration diagram for Core.TypeCast.IFactory< out out TInstance, in in TIn1, in in TIn2 >:

Public Member Functions

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...
 

Detailed Description

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
TInstanceThe Type of the instances to create and return by the factory method Create(TIn1) and Create(TIn1, TIn2).
TIn1The parameter type used for defining the instance creation process in the factory method Create(TIn1)
TIn2The 2. parameter type used for defining the instance creation process in the factory method Create(TIn1) and Create(TIn1, TIn2)
Type Constraints
TInstance :class 

Definition at line 20 of file IFactory.cs.

Member Function Documentation

TInstance Core.TypeCast.IFactory< out out TInstance, in in TIn1, in in TIn2 >.Create ( TIn1  parameter)

Parameters
method
Returns
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
parameterThe 1. parameter of Type TIn1 defining instance creation.
parameterSetThe 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: