Table of Contents

Class AbstractObjectInstantiator

Namespace
Stride.Core.Reflection
Assembly
Stride.Core.Assets.dll
public static class AbstractObjectInstantiator
Inheritance
AbstractObjectInstantiator

Methods

CreateConcreteInstance(Type)

Creates an instance of a type implementing the specified baseType.

public static object CreateConcreteInstance(Type baseType)

Parameters

baseType Type

Returns

object

An instance of a type implementing the specified baseType.

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

InitializeTypeBuilderFromType(TypeBuilder, Type)

Initializes the typeBuilder using the provided baseType.

public static void InitializeTypeBuilderFromType(TypeBuilder typeBuilder, Type baseType)

Parameters

typeBuilder TypeBuilder

The type builder to initialize.

baseType Type

The base type of the type currently under construction.