[]
Creates a new instance of this type using the default constructor.
public static T New<T>(this Type type)
Type | Name | Description |
---|---|---|
Type | type | The type. |
Type | Description |
---|---|
T | A new instance of type T. |
Name | Description |
---|---|
T |
Creates a new instance of this type using the default constructor.
public static object New(this Type type)
Type | Name | Description |
---|---|---|
Type | type | The type. |
Type | Description |
---|---|
object | A new instance of type T. |
Creates a new instance of this type using the default constructor.
public static T New<T>(this Type type, Action<T> initializers)
Type | Name | Description |
---|---|---|
Type | type | The type. |
Action<T> | initializers | The initializers. |
Type | Description |
---|---|
T | A new instance of type T |
Name | Description |
---|---|
T |