Interface ITypeCreationProvider
Interface representing a reflection provider used to instantiate System.Type objects.
Namespace: System.Reflection
Assembly: Nuqleon.Reflection.Virtualization.dll
Syntax
public interface ITypeCreationProvider
  Methods
MakeArrayType(Type)
Makes a single-dimensional (vector) array type with the specified element type.
Declaration
Type MakeArrayType(Type elementType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | elementType | The element type of the array.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A single-dimensional (vector) array type with the specified element type.  | 
      
MakeArrayType(Type, Int32)
Makes a multi-dimensional array type with the specified element type and rank.
Declaration
Type MakeArrayType(Type elementType, int rank)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | elementType | The element type of the array.  | 
      
| System.Int32 | rank | The rank of the multi-dimensional array.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A multi-dimensional array type with the specified element type and rank.  | 
      
MakeByRefType(Type)
Makes a by-ref type with the specified underlying element type.
Declaration
Type MakeByRefType(Type elementType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | elementType | The underlying element type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A by-ref type with the specified underlying element type.  | 
      
MakeGenericType(Type, Type[])
Makes a generic type with the specified generic type definition and type arguments.
Declaration
Type MakeGenericType(Type genericTypeDefinition, params Type[] typeArguments)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | genericTypeDefinition | The generic type definition.  | 
      
| System.Type[] | typeArguments | The type arguments.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A generic type with the specified generic type definition and type arguments.  | 
      
MakePointerType(Type)
Makes a pointer type with the specified underlying element type.
Declaration
Type MakePointerType(Type elementType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | elementType | The underlying element type.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Type | A pointer type with the specified underlying element type.  |