Click or drag to resize

UtilityInvokeMethodSafe Method (Object, String, Object)

Call a method via its name. No exceptions are thrown.

Namespace:  Grasshopper
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static Object InvokeMethodSafe(
	Object target,
	string method,
	params Object[] params
)

Parameters

target
Type: SystemObject
Object to invoke on.
method
Type: SystemString
Name of method to invoke.
params
Type: SystemObject
Arguments for method.

Return Value

Type: Object
The return value of the method.
See Also