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