title: WCF with Windows Phone 8
body: <p>I have read a few articles in how to connect to a WCF service in a VB .Net application but nothing is 100% concrete in understanding whats happening and under what event if any.</p>
  
  <p>I have a service created in C# which has the following method:</p>
  
  <pre><code>    public List&lt;Customer&gt; GetCustomers()
      {
          var c = myDataContext.Customers.ToList();
          return c;
      }
  </code></pre>
  
  <p>So we know it returns a List of Customers. Now in a Windows Phone Application (VB .Net project) i try and create an instance of the service and iterate through the Customer list:</p>
  
  <pre><code>Dim CustService As New CService.CustomerClient
  
  For Each i In CustService.GetCustomers
  
  Next
  </code></pre>
  
  <p>Now this returns the error <em>Expression doesnt produce a value</em></p>
  
  <p>I know this is a List and it returns some value (Web service has also been tested by other means). Reading a dozen articles which seem to be in C# it seems i have to have something inside an event but really struggling to work this out to see what im doing wrong. </p>
  
  <p>Can anyone guide me or point me to something that would help me overcome the above issue?</p>