internal class CurrentUser { private static CurrentUser _instance; public static CurrentUser Instance { get { if (_instance == null) { _instance = new CurrentUser(); } return _instance; } } public string UserName { get; set; } private CurrentUser() { } }You can use:
CurrentUser.Instance.UserName