title: How to gcnew Task which has an return value in C++/CLI?
body: <p>I'm using Tasks on C++/CLI.
  I would like to use MyTask(), wait for it until timeout, and get the return value.</p>
  <p>However, I have no idea.</p>
  <pre><code>bool MyClass::MyTask(Object^ obj)
  {
      MyClass^ my_obj = (MyClass^) obj;
  
      // Do something
      
      return true;
  }
  
  void MyClass::Method()
  {
      //Task&lt;bool&gt;^ task = gcnew Task&lt;bool&gt;(gcnew System::Action&lt;Object^&gt;(&amp;MyClass::MyTask), this); // This lin is invalid.
  
      //task-&gt;Start(); // I think I have to use Run() instead.
      
      bool result = await System::Threading::Tasks::Task::Run(gcnew System::Action&lt;Object^&gt;(&amp;MyClass::MyTask), this); // This line is invalid.
  }
  </code></pre>