title: C# Async pass reference to other thread
body: <p>I am trying to load a database context in a separate thread. And then update a form's display once finished.</p>
  
  <p>Could anyone advise me on the proper approach to do this.</p>
  
  <p>At the moment my context is loaded, but my _context does not seem to return the Context:</p>
  
  <pre><code>    public static ProjectEntities Context = new ProjectEntities();
  
      public static void LoadAsync(ref ProjectEntities _context, Type _table)
      {
          LoadAsyncImpl(_table);
          _context = Context;
      }
  
      private static async void LoadAsyncImpl(Type _table)
      {
          ProjectEntities _context = new ProjectEntities();
          await _context.Set(_table).LoadAsync();
          Context = _context;
  
      }
  }
  </code></pre>