Can someone Put this in C#?

function OnMouseDown(){
//change text color
renderer.material.color=Color.red;
}

function OnMouseDown(){

to

void OnMouseDown(){