Internalising Custom Class as Data & Passing to Another Custom Component

I’m writing all of the custom components in Visual Studio C#. When passing data from component to component the GH_ObjectWrapper works fine and I can read each via customguy = input.Value as CustomClass. However once the data is internalised (using Grasshopper’s “internalise data”), I can no longer cast the data into the CustomClass.

Any suggestions? Help much appreciated.

Have you created a wrapper class derived from GH_Goo or similar for your custom class?

1 Like

What @dsonntag said. Unless you provide a specific data type which implements IGH_Goo (or inherits from GH_Goo<T>) your data can not be (de)serialised.