Save data Output from c#

Hi everyone,

Is it possible to save different data outputs from C# in Grasshopper, using different inputs and file paths?

By “data output,” I mean the Grasshopper component data output that generates a .ghdata file, allowing me to store BReps, surfaces, and other native Grasshopper geometry.

Thanks in advance!