title: Task.Factory.StartNew(someMethod(withParam)).continueWith(sameMethod(differentParam)).Wait()
body: <p>What is the correct syntax for parallelizing the following code?</p>
  
  <pre><code>static void Main(string[] args)
  {
      Task.Factory.StartNew(
          () =&gt;
              doOne(SelectedTask.option1)
             .ContinueWith(
              task =&gt; 
              doOne(SelectedTask.option1)).Wait()
     ); 
  }
  </code></pre>
  
  <p>Same method with <code>enum</code> "selectedTask" to decide which code to execute :</p>
  
  <pre><code>static enum SelectedTask
  {
      option1,
      option2
  }
  
  static void doOne(SelectedTask Lunch)
  { 
      switch (lunch)
      {
          case SelectedTask.option1:
              Console.WriteLine("option1");
              break;
          case SelectedTask.option2:
              Console.WriteLine("option2");
              break;
          default:
              break;
      }
  }
  </code></pre>