title: C# 5.0 async await return a list
body: <p>I'm learning about async/await, and ran into a situation where I need to call an async method
  that should return an object or list of same object.<br>
  Is this the right way to implement ?  </p>
  
  <p>from AManager.cs  </p>
  
  <pre><code>public async Task Initialize(string objectPath)
  {
      AnObject someObject = await BClass.GetAnObject(objectPath);
  }
  </code></pre>
  
  <p>and this is the called method</p>
  
  <pre><code>Class B:
  public async Task&lt;AnObject&gt; GetAnObject(string objectPath)
  {
      AnObject someObj = new AnObject();
      return someObj;
  }
  </code></pre>
  
  <p>What happens if I want to return a list of object ? I should create a wrapper that contains a list ? and return that wrapper ?<br>
  Because this is not applicable:  </p>
  
  <pre><code>public async Task&lt;List&lt;AnObject&gt;&gt; GetAnObject(string objectPath)
  </code></pre>