Extrude surface using C#

Hi

I am trying to extrude a surface using a C# script. I’ve created a breb surface but can’t find a way to add a thickness in order to create a tile like element similar to the one below. The component has to be made in C# - what is the best way to do this?
image

ExtrudeSurface.gh (10.7 KB)

Thanks in advance!

Kind regards
Malthe

This method should work

Thank you very much!