GH C# transfering different data type

script
grasshopper
unhandled

(Shimpei) #1

Hello

I want to transfer different datatype from one to another.
Datatype is defined my own class.

public class particle
{
public Matrix a;
public Matrix b;
public int c;
}

How can I receive script_instance datatype in other component ?

Best
Shimpei


(qythium) #2

Hi, you can check out the method posted here
using anonymous types: Passing custom class in c#


(Shimpei) #3

Hi qythium,

That’s really I wanted !

Thank you so much!