c# console how to read input code example Example: c# console input string userName = Console.ReadLine();