Go through this namespace:
https://developer.rhino3d.com/api/RhinoCommon/html/N_Rhino_NodeInCode.htm
Edit: Here’s Giulio’s old tutorial covering this: