I have a function like this:
public static Mesh MeshFromPolylines(List<Polyline> nurbsCurves, int type, bool weld)
{
..code..
}
then I have overloading:
public static Mesh MeshFromPolylines(Polyline[] nurbsCurves, int type, bool weld)
{
..code..
}
Is there any way to write second function without copy paste the same code?
Both function has totally the same code inside. Just the difference is input List<Polyline>
and Polyline[]
.