CreateStunt(Assembly, Type, Type[], Object?[]) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Creates a stunt with the given parameters.

object CreateStunt(Assembly assembly, Type baseType, Type[] implementedInterfaces, object? [] constructorArguments)

Parameters

assembly
Assembly

Assembly where compile-time generated stunts exist.

baseType
Type

The base type (or main interface) of the stunt.

implementedInterfaces
Type[]

Additional interfaces implemented by the stunt, or an empty array.

constructorArguments
Object?[]

Constructor arguments if the baseType is a class, rather than an interface, or an empty array.

Returns

Object
A stunt that implements IStunt in addition to the specified interfaces (if any).