convert Var in c#

Hi,
How can i convert this var in c# code?

var objectToControl : namescript;

public NameScript objectToControl;

(or private), that’s probably what you are looking for