Param_CrossSectionPreferredCast Method

Implement this function if you're certain that you'll be confronted with very common casts. For example, GH_Point has a preferred cast from Rhino.Geometry.Point3d and GH_Number has a preferred cast from System.Double.

Definition

Namespace: Karamba.GHopper.CrossSections
Assembly: karamba (in karamba.dll) Version: 1.0.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
protected override GH_CrossSection PreferredCast(
	Object data
)

Parameters

data  Object
Data to convert. Data is never null.

Return Value

GH_CrossSection
An instance of T or null if you did not handle the cast.

See Also