Table of Contents

Class MethodInvokerFactory

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

Provides a compiler for an invoke method for an instance method with injected dependencies and entity-to-component conversion.

public static class MethodInvokerFactory
Inheritance
MethodInvokerFactory
Inherited Members

Methods

Compile(MethodInfo, MethodParameterSource[], object?)

Compiles the invoker for the specified method.

public static MethodInvoker Compile(MethodInfo methodInfo, MethodParameterSource[] parameterSources, object? uninvokedReturnValue = null)

Parameters

methodInfo MethodInfo

The method information.

parameterSources MethodParameterSource[]

The sources of the parameters.

uninvokedReturnValue object

The value returned if the method is not invoked when a parameter could not be converted to the correct component.

Returns

MethodInvoker

The method invoker.