Quaternion.LookRotation works when I use it in Javascript, but not in C#

I have this line that works in Javascript, but I am converting the project to C#, where it displays the errors below. rotate is a Quaternion, inputPosition and centrePosition are Vector3.

rotate = Quaternion.LookRotation(inputPosition - centrePosition, Vector3().forward);

Any suggestions?

Vector3.forward

no ()

Thank you very much. It always seems that the simplest things are the hardest to spot.