Utility.InvokeMethodSafe Method (Object, String,Object[]) |
Call a method via its name. No exceptions are thrown.
Namespace:
Grasshopper
Assembly:
Grasshopper (in Grasshopper.dll)
Syntaxpublic static Object InvokeMethodSafe(
Object target,
string method,
params Object[] params
)
Public Shared Function InvokeMethodSafe (
target As Object,
method As String,
ParamArray params As Object()
) As Object
Parameters
- target
- Type: System.Object
Object to invoke on. - method
- Type: System.String
Name of method to invoke. - params
- Type:System.Object[]
Arguments for method.
Return Value
Type:
ObjectThe return value of the method.
See Also