C# Class Plugin.FunctionInfo

Provides info and functionality for calling reflected methods
Show file Open project: Silveryard/SmartHome Class Usage Examples

Private Properties

Property Type Description
GetParamInfo System.Reflection.ParameterInfo

Public Methods

Method Description
FunctionInfo ( string name, object instance, MethodInfo info ) : System

Creates a new instance

GetParameterType ( string parameter ) : Type

Returns the type of a specific parameter

Invoke ( object>.Dictionary parameters ) : object

Invokes the method with a given parameter set

Private Methods

Method Description
GetParamInfo ( string parameter ) : ParameterInfo

Method Details

FunctionInfo() public method

Creates a new instance
public FunctionInfo ( string name, object instance, MethodInfo info ) : System
name string A custom name
instance object The instance to call the function on
info System.Reflection.MethodInfo The function info itself
return System

GetParameterType() public method

Returns the type of a specific parameter
public GetParameterType ( string parameter ) : Type
parameter string The parameter
return System.Type

Invoke() public method

Invokes the method with a given parameter set
public Invoke ( object>.Dictionary parameters ) : object
parameters object>.Dictionary The parameters
return object