Utility.InvokeGetterSafe Method

UtilityInvokeGetterSafe Method

Call a getter property via its name. No exceptions are thrown.

Namespace:  Grasshopper
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static Object InvokeGetterSafe(
	Object target,
	string property
)
Public Shared Function InvokeGetterSafe ( 
	target As Object,
	property As String
) As Object

Parameters

target
Type: SystemObject
Object to invoke on.
property
Type: SystemString
Name of property to invoke.

Return Value

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