Click or drag to resize

GH_GooTCastToQ Method

Attempt a cast to type Q.

Namespace:  Grasshopper.Kernel.Types
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public virtual bool CastTo<Q>(
	ref Q target
)

Parameters

target
Type: Q
Pointer to target of cast.

Type Parameters

Q
Type to cast to.

Return Value

Type: Boolean
True on success, false on failure.

Implements

IGH_GooCastToT(T)
Remarks
If false, the target instance contents are not guaranteed to be valid.
See Also