title: Async property in c#
body: <p>In my windows 8 application there is a <em>global</em> class where there are a few static properties like:</p>
  
  <pre><code>public class EnvironmentEx
  {
       public static User CurrentUser { get; set; }
       //and some other static properties
  
       //notice this one
       public static StorageFolder AppRootFolder
       {
           get
           {
                return KnownFolders.DocumentsLibrary                    
                 .CreateFolderAsync("theApp", CreationCollisionOption.OpenIfExists)
                 .GetResults();
           }
       }
  }
  </code></pre>
  
  <p>You can see I want to use the application root folder somewhere else in the project, so I make it a static property. Inside the getter, I need to make sure the root folder exists,otherwise create it. But the <code>CreateFolderAsync</code> is an async method, here I need a synchronized operation. I tried <code>GetResults()</code> but it throws an <code>InvalidOperationException</code>. What is the correct implementation? (The package.appmanifest is correctly configured, the folder is actually created.)</p>