title: adding user input to a list of classes
body: <p>I have a computer assignment I am stuck on. 
  I have to make a list of college classes, and let the user add to or delete from that list. I have the basic list made, and my printmenu loop, but cannot figure out how to make the user input into another Class in classlist. </p>
  
  <p>Here is my main.cs thus far....</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  
  namespace Lab04
  {
      class MainClass
      {
          public static string prefix;
          public static int coursenumber;
          public static int credithours;
          public static string coursedescription;
  
  
          public static void Main (string[] args) //creates 4 courses (used some leftover Lab 03 data and some new) 
          {
  
              Course c1 = new Course();
              Course c2 = new Course("ENGL", 1102, 3, "Second level class for English Composition.");
              Course c3 = new Course("GEOG", 1113, 4, "This is an online lab course for Geography.");
              Course c4 = new Course("BWV", 101, 2, "This is basket weaving on a college level, for those of you who need a break.");
  
  
              Console.WriteLine ("Here are your current courses for this semester:");
  
              List&lt;Course&gt; classlist = new List&lt;Course&gt;();
              classlist.Add (c1);
              classlist.Add (c2);
              classlist.Add (c3);
              classlist.Add (c4);
  
              foreach(Course c in classlist) 
                  Console.WriteLine(c + " ");
              Console.WriteLine();
  
              int choice;
              do {
              PrintMenu();
              choice = Int32.Parse (Console.ReadLine());
              ProcessChoice(choice);
              } while (choice != 4);
              Console.WriteLine ("Thank you for using this system.");
  
          }
  
          public static void PrintMenu() //print menu for user input
          {
              Console.WriteLine("Main Menu:"); 
              Console.WriteLine("1. Add a Course to the list.");
              Console.WriteLine("2. Delete a Course from the list.");
              Console.WriteLine("3. Print your class schedule.");
              Console.WriteLine("4. Exit this System.");
              Console.WriteLine("Please enter your numerical choice.");
  
          }
  
          static void ProcessChoice(int c) // do while loop code for user input
          {
              if (c == 1)
              {
                  Console.WriteLine ("Please enter the Course prefix.");
                  prefix = Console.ReadLine();
                  Console.WriteLine ("Please enter the Course number.");
                  coursenumber = Int32.Parse(Console.ReadLine());
                  Console.WriteLine ("How many credit hours is this course worth?");
                  credithours = Int32.Parse(Console.ReadLine());
                  Console.WriteLine ("Please enter a short course description.");
                  coursedescription = Console.ReadLine();
              }
  
              else if (c == 2)
              {
                  Console.WriteLine ("Which course would you like to remove?");
              }
  
              else if (c == 3)
              {
                  Console.WriteLine ("Displaying current class schedule.");
  
  
              }
          }
      }
  }
  </code></pre>
  
  <p>I looked at this post <a href="https://stackoverflow.com/questions/28596078/adding-multiple-user-input-to-a-list-c-sharp">Adding multiple user input to a List c#</a>, but since it just added integers, not a whole class to the list, it did not answer my question </p>