Class ObjectFactoryAttribute
- Namespace
- Stride.Core.Annotations
- Assembly
- Stride.Core.dll
An attribute that defines a factory class implementing IObjectFactory, used to create instances of the related type in design-time scenarios.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public sealed class ObjectFactoryAttribute : Attribute
- Inheritance
-
ObjectFactoryAttribute
- Inherited Members
Constructors
ObjectFactoryAttribute(Type)
Initializes a new instance of the ObjectFactoryAttribute class.
public ObjectFactoryAttribute(Type factoryType)
Parameters
factoryType
TypeThe factory type that implements IObjectFactory.
Properties
FactoryType
The type of the factory to use to create instance of the related type.
public Type FactoryType { get; }