My translated C# script does compile without errors/warnings but the result is a broken (but recognizable) mesh:
I've also noticed that the vertices look reasonably correct:
If you can't already tell, the input voxels are just simplex noise.
If anyone would like the Unity project, here it is.
Can someone who knows both languages well tell me what I've missed? Thank you.