title: Using async function in static methods
body: <p>I have a static method that in it I call <code>async</code> method (xmlHelper.LoadDocument()). and I call this method in a property at Setter section</p>
  
  <pre><code>internal static IEnumerable&lt;Word&gt; LoadTenWords(int boxId)
  {
       XmlHelper xmlHelper = new XmlHelper();
       XDocument xDoc = xmlHelper.LoadDocument().Result;
       return xDoc.Root.Descendants("Word").Single(...)
  } 
  </code></pre>
  
  <p>As you know LoadTenWord is static and cannot be a async method, so I call LoadDocument with Result property. When I run my app the application don't work but when I debug it and I wait in following line </p>
  
  <pre><code>XDocument xDoc = xmlHelper.LoadDocument().Result;
  </code></pre>
  
  <p>everything is ok!!! I <strong>think</strong>, without <code>await</code> keyword, C# doesn't wait for the process completely finished.</p>
  
  <p>do you have any suggestion for solving my problem?</p>