I could not find a equivalent for the RailRevolve command in Rhinocommon.
It is there, I use it in Pufferfish, it is in NurbsSurface Class
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_NurbsSurface_CreateRailRevolvedSurface.htm
Thank you i have search in RevSurface and Brep but missed NurbsSurface.