Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IObjectFactory Interface

    Namespace: Stride.Core.Reflection
    Assembly: Stride.Core.dll

    Interface of a factory that can create instances of a type.

    public interface IObjectFactory
    Name Description
    Methods
    New(Type)

    Creates a new instance of a type.

    | Improve this Doc View Source

    Methods


    New(Type)

    Creates a new instance of a type.

    object New(Type type)
    Parameters
    Type Name Description
    System.Type type

    The type of the instance to create.

    Returns
    Type Description
    System.Object

    A new default instance of a type.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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