However since I already knew that calling a DLL from .NET is usually done over Invoke, my question was related more to “how”… Is GH “C# script” the best way, and if yes how would an example code look like…
I haven’t used GH C# Script, but my understanding is that the scripting bit is better suited for fast prototyping.
I’d go for writing just a C# plug-in that implements your components. This gives you probably more control over potential GUI stuff as well. The Grasshopper SDK explains creating custom C#/VB.NET components quite well.