Click or drag to resize

IGH_GooCastToT Method

Attempt a cast to type T

Namespace:  Grasshopper.Kernel.Types
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
bool CastTo<T>(
	out T target
)

Parameters

target
Type: T
Pointer to target of cast.

Type Parameters

T
Type to cast to

Return Value

Type: Boolean
True on success, false on failure.
Remarks
If false, the target instance contents are not guaranteed to be valid.
See Also