HyperComments.Recorder.RecordingCommand.GetCurrentUser C# (CSharp) Method

GetCurrentUser() public method

public GetCurrentUser ( ) : string
return string
        public string GetCurrentUser()
        {
            string user = Thread.CurrentPrincipal.Identity.Name;

            if (user.Contains("\\"))
            {
                user = user.Substring(user.LastIndexOf("\\") + 1);
            }

            return user;
        }