C# Class Scriban.Runtime.ScriptObjectExtensions.ObjectFunctionWrapper

Inheritance: IScriptCustomFunction
Show file Open project: lunet-io/scriban

Public Methods

Method Description
Evaluate ( TemplateContext context, ScriptNode callerContext, ScriptArray parameters, ScriptBlockStatement blockStatement ) : object
ObjectFunctionWrapper ( object target, MethodInfo method ) : System

Method Details

Evaluate() public method

public Evaluate ( TemplateContext context, ScriptNode callerContext, ScriptArray parameters, ScriptBlockStatement blockStatement ) : object
context TemplateContext
callerContext ScriptNode
parameters ScriptArray
blockStatement ScriptBlockStatement
return object

ObjectFunctionWrapper() public method

public ObjectFunctionWrapper ( object target, MethodInfo method ) : System
target object
method System.Reflection.MethodInfo
return System