public class Utilities { static private string InitialFileName; static Utilities() { InitialFileName = "NewFile" + DateTime.Now; } static public void CreateFile() { ...code using InitialFileName... } }