GH_DirtyCaster

Methods

CastToList<T>

#
public static List<T> CastToList<T>(object in)
Dirty cast a List(Of GH_ScriptVariable) to a List(Of T), where T is the GH_ScriptVariable.Type.
in (object)List(Of GH_ScriptVariable) which must contain only nulls or instances of {T}.
A list of T.

CastToTree<T>

#
public static DataTree<T> CastToTree<T>(object in)
Dirty cast a GH_Structure(Of GH_ScriptVariable) to a DataTree(Of T), where T is the GH_ScriptVariable.Type.
in (object)GH_Structure(Of GH_ScriptVariable) which must contain only nulls or instances of {T}.
A DataTree(Of T).