js to C# - Transform

Hi! need help to js to C# convertion:

Transform t = child.transform;

error CS1612: Cannot modify a value type return value of `UnityEngine.Transform.position’. Consider storing the value in a temporary variable

You can’t assign a value to x, y or z variables at transform like as js in C#. You should define a new Vector3 for changing value manually.

t.position = new Vector3(t.position.x, t.position.y, 0f);