Pip-Services-Commons-Dotnet
|
Helper class to perform object type introspection and object instantiation. More...
Static Public Member Functions | |
static Type | GetType (string name, string library) |
Gets object type by its name and library where it is defined. More... | |
static Type | GetType (string name) |
Gets object type by its name. More... | |
static Type | GetTypeByDescriptor (TypeDescriptor type) |
Gets object type by type descriptor. More... | |
static object | CreateInstanceByType (Type type, params object[] args) |
Creates an instance of an object type. More... | |
static object | CreateInstance (string name, string library, params object[] args) |
Creates an instance of an object type specified by its name and library where it is defined. More... | |
static object | CreateInstance (string name, params object[] args) |
Creates an instance of an object type specified by its name. More... | |
static object | CreateInstanceByDescriptor (TypeDescriptor type, params object[] args) |
Creates an instance of an object type specified by type descriptor. More... | |
Helper class to perform object type introspection and object instantiation.
This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing.
Because all languages have different casing and case sensitivity rules, this TypeReflector treats all type names as case insensitive.
See TypeDescriptor
|
static |
Creates an instance of an object type specified by its name and library where it is defined.
name | an object type name. |
library | a library (module) where object type is defined. |
args | arguments for the object constructor. |
|
static |
Creates an instance of an object type specified by its name.
name | an object type name. |
args | arguments for the object constructor. |
|
static |
Creates an instance of an object type specified by type descriptor.
type | a type descriptor that points to an object type |
args | arguments for the object constructor. |
|
static |
Creates an instance of an object type.
type | an object type (factory function) to create. |
args | arguments for the object constructor. |
|
static |
Gets object type by its name and library where it is defined.
name | an object type name. |
library | a library where the type is defined |
|
static |
Gets object type by its name.
name | an object type name. |
|
static |
Gets object type by type descriptor.
type | a type descriptor that points to an object type |