title: How can I call async method from constructor?
body: <p>I need to call a <code>async</code> method from my <code>Form1</code> constructor. Since a constructor can't have a return type, I can't add a <code>async void</code>. I read that <a href="https://social.msdn.microsoft.com/Forums/windowsapps/en-US/0d24419e-36ad-4157-abb5-3d9e6c5dacf1/constructor-invoke-async-method" rel="noreferrer">static constructor</a> can be <code>async</code> but I need to call methods from constructor that aren't <code>static</code>, such as <code>InitializeComponent()</code> (since it's the Form's constructor).</p>
  
  <p>The class is:</p>
  
  <pre><code>public partial class Form1 : Form
  {
      InitializeComponent();
      //some stuff
      await myMethod();
  }
  </code></pre>
  
  <p>I read <a href="https://stackoverflow.com/questions/7261173/c-sharp-start-async-method-within-object-constructor-bad-practice">this</a> one too but I still don't know how to implement this (in my case) since the method still requires to use <code>async</code>.</p>