How to run this code gh.RunSolver(False) using c#?

This is code using python:
for i in range(3):
slider.SetSliderValue(i, false)
print "Slider value: "+str(i)
print "Result value: "+str(out.VolatileData[0][0])
I want apply that code into code of my, but i don’t know how to apply it in C # language
How to i run this code in C#?. This is refer URL:

Best regards