console.readline

  1. M

    How to Code User-Typed Console info with SOLID Principles

    I recently completed an small assessment that reads a CSV sheet, then adds to it. This is a C# console app. I'm still learning, and at this point, I can achieve MVP, but it is lacking in SOLID principles or 4 pillars of OOP. Here is a working method for retrieving a first name from a user...
  2. L

    Question Read() and ReadLine()

    Hi, I am new to this forum and C#. I have following code. Console.WriteLine("Enter a character"); int int1 = Console.Read(); Console.WriteLine(int1); Console.WriteLine("Enter a string of characters"); string string1 = Console.ReadLine(); Console.WriteLine(string1); Console.ReadLine(); When I...
Top Bottom