c# get user input console code example Example: c# console input string userName = Console.ReadLine();