Convert JS function to C#

Hello! Until this time, I used the JS, but now I need the code to C #. That piece of code on the JS, it must be converted into C#. Help please.

public var SpeedVariable =10.0;


function FlyForward () {
rigidbody.AddRelativeForce (0, 0, SpeedVariable );
}

Here is the link for online converter;
http://forum.unity3d.com/threads/46520-Online-UnityScript-Javascript-to-C-converter
-Kaya

public float SpeedVariable =10.0;


public void FlyForward () {
rigidbody.AddRelativeForce (0, 0, SpeedVariable );
}