Constructors
GH_Variant
#public GH_Variant(GH_Variant other)
Duplicate a Variant.
Parameters:
| other (GH_Variant) | Variant to duplicate |
Properties
_Double
#Gets the contents of this Variant as a double. If the Variant is of type Integer this cast will also work.
_String
#Gets the contents of this Variant as a String. This function will work for all Variant types.
IsNumeric
#Gets a value indicating whether or not the Variant is a numeric type. Only Doubles and Integers are considered to be Numeric.
Methods
Data<T>
#public T Data<T>()
Perform a straight cast of the data inside this Variant.
Returns: The value inside this Variant cast to T.
Duplicate
#Duplicate this Variant. If the type of this Variant is [unknown] the contents are not guaranteed to be duplicated.
Evaluate
#If this variant represents a string, this function will attempt to evaluate that string and replace the data inside this variant.
Returns: True if the string was evaluated, false if otherwise.
ToGoo
#Attempt to convert a Variant to a Grasshopper IGH_Goo type.
Returns: An instance of a class implementing IGH_Goo or null.