Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AbstractObjectInstantiator Class

    Namespace: Stride.Core.Reflection
    Assembly: 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 baseType.

    InitializeTypeBuilderFromType(TypeBuilder, Type)

    Initializes the typeBuilder using the provided baseType.

    | Improve this Doc View Source

    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 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
    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.


    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation