java to c#

function Start () {
var webcamTexture : WebCamTexture = WebCamTexture();
renderer.material.mainTexture = webcamTexture;
webcamTexture.Play();

}
can any one convert this to c# please

void Start()
{
var webcamTexture = new WebCamTexture();
renderer.material.mainTexture = webcamTexture;
webcamTexture.Play();
}

using UnityEngine;

public class YourScriptNameHere : MonoBehaviour {
   private void Start() {
       var webcamTexture = new WebCamTexture();
       renderer.material.mainTexture = webcamTexture;
       webcamTexture.Play();
   }
}