title: How to read user input in c# console
body: <p>I guess this should be very simple to you guys, but very difficult to me because im new to c#.</p>
  
  <p>I have a simple "pacient" class.</p>
  
  <pre><code>public class Pacient {
  
  public Pacient(string _name, string _lastName, DateTime _date, string _phone, string _email)
  {
      name = _name;
      lastname = _lastName
      dateOfBirth = _date;
      phone_num = _phone;
      email = _email;
  }
  
  
  private string name;
  public string Name {
      get {
          return name;
      }
      set {
          name = value;
      }
  }
  </code></pre>
  
  <p>etc...</p>
  
  <p>Now i want to read the input user types in console...</p>
  
  <p><strong>How do i do that?</strong> It works with pre-typed names, like shown bellow..</p>
  
  <pre><code> Pacient John = new Pacient("John", " Doe ", new DateTime(1992,12,12) , " 045-999-333", "  example@example.com");
          John.Email = "example@example.com";
          John.Name ="JOHN ";
          John.LastName=" DOE ";*/
  </code></pre>
  
  <p><strong>To sum up</strong>
  When console opens, it should ask for a name. And when user types in the name, console should store the name into "name" and later display it.</p>
  
  <p>Thank you guys!</p>