how do i convert this to C sharp?

var isQuit=false;

function OnMouseUp(){
//is this quit
if (isQuit==true) {
//quit the game
Application.Quit();
}

thanks in advance

//---------------- C#
public bool isQuit = false;

Void OnMouseUp()
{
if(isQuit == true)
{
Application.Quit();
}
}

Thank you lyno!