I am sure this will be a fairly uncommon question, so here we go:
I have a C++ DLL that uses OpenNURBS to read and write .3dm files, as well as generate ON_Brep, ON_Curve, and ON_Surface objects. We are currently extending our app to C# to use Rhino.compute for automation.
Is there any way I can move my C++ classes into the equivalent C# classes to be sent to Rhino.Compute? The only solution that comes to mind is saving the data as a .3dm file and reading it back via RhinoCommon or sending directly the file to be opened by the rhino.compute server
RhinoCompute calls C# code which can be your C# code. Your C# code would call your C++ code to get C++ pointers to OpenNURBS data types and then use the Interop class to wrap those C++ pointers into C# RhinoCommon classes.