AbstractObjectInstantiator Class
Namespace: Stride.Core.ReflectionAssembly: Stride.Core.Assets.dll
System.Object →
AbstractObjectInstantiator
Derived from AbstractObjectInstantiator:
public static class AbstractObjectInstantiator
| Name | Description | |
|---|---|---|
| Methods | ||
| CreateConcreteInstance(Type) | Creates an instance of a type implementing the specified |
|
| InitializeTypeBuilderFromType(TypeBuilder, Type) | Initializes the |
|
Methods
CreateConcreteInstance(Type)
Creates an instance of a type implementing the specified baseType.
public static object CreateConcreteInstance(Type baseType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | baseType |
Returns
| Type | Description |
|---|---|
| System.Object | An instance of a type implementing the specified |
Remarks
If baseType is already a concrete type (not an abstract type nor an interface, the method returns an instance of baseType itself.
See Also
System.Activator.CreateInstance(System.Type)
InitializeTypeBuilderFromType(TypeBuilder, Type)
Initializes the typeBuilder using the provided baseType.
public static void InitializeTypeBuilderFromType(TypeBuilder typeBuilder, Type baseType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.Emit.TypeBuilder | typeBuilder | The type builder to initialize. |
| System.Type | baseType | The base type of the type currently under construction. |