CreateInstance Method
CreateInstance(Type, Object[])
Creates an instance of the specified type, passing the specified arguments to its constructor.
Declaration
public virtual object CreateInstance(Type type, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Object[] | arguments |
Returns
Type | Description |
---|---|
System.Object |