Class Activate<TObjectPrototype>
- Namespace
- Dynamitey
- Assembly
- Dynamitey.Community.dll
Encapsulates an Activator
public class Activate<TObjectPrototype> : Activate
Type Parameters
TObjectPrototypeThe type of the object prototype.
- Inheritance
-
Activate<TObjectPrototype>
- Inherited Members
Constructors
Activate(Func<object[]>)
Initializes a new instance of the Activate<TObjectPrototype> class. With Factory Function
public Activate(Func<object[]> args)
Parameters
Activate(params object[])
Initializes a new instance of the Activate<TObjectPrototype> class.
public Activate(params object[] args)
Parameters
argsobject[]The args.
Methods
Create()
Creates this instance.
[RequiresUnreferencedCode("Calls Activator.CreateInstance<TObjectPrototype>(), which requires TObjectPrototype to have a public parameterless constructor for trim analysis, and falls back to the annotated Dynamic.InvokeConstructor.")]
[RequiresDynamicCode("The Dynamic.InvokeConstructor fallback requires the DLR's runtime code generation; not supported when AOT-compiled.")]
public override dynamic Create()
Returns
- dynamic