C# Class Plugin.FunctionInfo

Provides info and functionality for calling reflected methods
Afficher le fichier Open project: Silveryard/SmartHome Class Usage Examples

Private Properties

Свойство Type Description
GetParamInfo System.Reflection.ParameterInfo

Méthodes publiques

Méthode 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

Méthode Description
GetParamInfo ( string parameter ) : ParameterInfo

Method Details

FunctionInfo() public méthode

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
Résultat System

GetParameterType() public méthode

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

Invoke() public méthode

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