visual studio input c# code asp.net code example Example: c# console input string userName = Console.ReadLine();