How to convert this Javascript line into C#?

var entry = entries[index];

This is the entire function, but I just need help with that one line above:

function ChangeName (index : int, name : String) 
{
    var entry = entries[index];
    entry.name = name;
    SetupHighscoreTableText ();
}

I don't know what 'entries' is, but you can most likely just write:

entries[index].name = name;