FactoryUtils MakeUsingCtor T  Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Invokes a constructor for type feeding it the specified args: node{type="NS.Type, Assembly" arg0=1 arg1=true....} If the typePattern is passed, then the '*' in pattern is replaced with 'type' attr content. This is needed for security, as this method allows to inject any type with any ctor params when typePattern is null

Namespace: NFX.Environment
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static T MakeUsingCtor<T>(
	IConfigSectionNode node,
	string typePattern = null
)
Type Parameters

T

Return Value

Type: T
See Also