Best way to check if mesh is inside out?

Hi, what would be the best way to check if a mesh is inside out with rhinocommon? Anyone have any code?

Thanks,
Sam

If it’s closed/solid, then you could use this:
https://developer.rhino3d.com/5/api/RhinoCommonWin/html/M_Rhino_Geometry_Mesh_SolidOrientation.htm

worked great, thanks!
Sam