Converting Variable to C#

Could someone Translate this line of code to C# for me please?

var hitRotation = Quaternion.FromToRotation(Vector3.up, Hit.normal);

Thanks!

It is a valid C# code line (if you have variable Hit defined).