GH_ConvertToBoolean_Primary Method |
Performs a direct cast from boolean or GH_Boolean.
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static bool ToBoolean_Primary(
Object data,
ref bool destination
)
Public Shared Function ToBoolean_Primary (
data As Object,
ByRef destination As Boolean
) As Boolean
Parameters
- data
- Type: SystemObject
Data to convert. - destination
- Type: SystemBoolean
Target for value assignment.
Return Value
Type:
BooleanTrue on success, false on failure.
See Also