Pip-Services-Commons-Dotnet
|
Helper class to perform method introspection and dynamic invocation. This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing. More...
Static Public Member Functions | |
static bool | HasMethod (object obj, string name) |
Checks if object has a method with specified name. More... | |
static object | InvokeMethod (object obj, string name, params object[] args) |
Invokes an object method by its name with specified parameters. More... | |
static IEnumerable< string > | GetMethodNames (object obj) |
Gets names of all methods implemented in specified object. More... | |
Static Private Member Functions | |
static bool | MatchMethod (MethodInfo method, string name) |
Helper class to perform method introspection and dynamic invocation. This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing.
Because all languages have different casing and case sensitivity rules, this MethodReflector treats all method names as case insensitive.
|
static |
Gets names of all methods implemented in specified object.
obj | an objec to introspect. |
|
static |
Checks if object has a method with specified name.
obj | an object to introspect. |
name | a name of the method to check. |
|
static |
Invokes an object method by its name with specified parameters.
obj | an object to invoke. |
name | a name of the method to invoke. |
args | a list of method arguments. |