Grasshopper API
UtilityInvokeMethodSafe Method (Object, String) |
Call a method via its name. No exceptions are thrown.
Namespace: Grasshopper
Assembly: Grasshopper (in Grasshopper.dll)

public static Object InvokeMethodSafe( Object target, string method )
Public Shared Function InvokeMethodSafe ( target As Object, method As String ) As Object
Parameters
- target
- Type: SystemObject
Object to invoke on. - method
- Type: SystemString
Name of method to invoke.
Return Value
Type: ObjectThe return value of the method.
