title: How to keep repeating switch statement C#
body: <p>I'm writing a program to create a list of books, and I have written a few methods for that purpose. I want to display a list of options for which method to call, then once they choose an option, keep displaying the options until they choose to exit.</p>
  
  <p>This is all I have so far:</p>
  
  <pre><code>List&lt;Book&gt; books = new List&lt;Book&gt;();
  
  switch
  {
      case 1:
          CardCatalog.AddBook(books);
          break;
      case 2:
          CardCatalog.ListBooks(books);
          break;
      default:
          CardCatalog.Save(books);
          break;
  }
  </code></pre>
  
  <p>I've already written the methods, now I just need this to work. If they choose option 1 or 2, the switch statement should be repeated. If they choose option 3, CardCatalog.Save() should be executed and the switch statement should NOT repeat.</p>
  
  <p>I would like this statement to be repeated each time as well:</p>
  
  <pre><code>Console.WriteLine("1. Add a Book\n2. List all books\n3. Save and exit");
  </code></pre>
  
  <p>But I don't know how to include it in the switch statement, or even if a switch statement is the right way to go about this (I think it is, though).</p>