Attempt a cast to type T
Namespace:
Grasshopper.Kernel.Types
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax bool CastTo<T>(
out T target
)
Function CastTo(Of T) (
<OutAttribute> ByRef target As T
) As Boolean
Parameters
- target
- Type: T
Pointer to target of cast.
Type Parameters
- T
- Type to cast to
Return Value
Type:
BooleanTrue on success, false on failure.
Remarks If false, the target instance contents are not guaranteed to be valid.
See Also