[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.EnvironmentAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static T MakeUsingCtor<T>(
IConfigSectionNode node,
string typePattern = null
)
public static T MakeUsingCtor<T>(
IConfigSectionNode node,
string typePattern = null
)
Public Shared Function MakeUsingCtor(Of T) (
node As IConfigSectionNode,
Optional typePattern As String = Nothing
) As T
Public Shared Function MakeUsingCtor(Of T) (
node As IConfigSectionNode,
Optional typePattern As String = Nothing
) As T
public:
generic<typename T>
static T MakeUsingCtor(
IConfigSectionNode^ node,
String^ typePattern = nullptr
)
public:
generic<typename T>
static T MakeUsingCtor(
IConfigSectionNode^ node,
String^ typePattern = nullptr
)
static member MakeUsingCtor :
node : IConfigSectionNode *
?typePattern : string
(* Defaults:
let _typePattern = defaultArg typePattern null
*)
-> 'T
static member MakeUsingCtor :
node : IConfigSectionNode *
?typePattern : string
(* Defaults:
let _typePattern = defaultArg typePattern null
*)
-> 'T
- T
Return Value
Type:
T