title: WCF Service Returns List of Objects in Xamarin.Android
body: <p>I want to return list of object in WCF , my problem is how do i implement it in my application</p>
  
  <pre><code>public List GetConsumer(string transformer, string account) { var search = new List();
  
      using (var conn = new MySqlConnection(ConnString))
      {
          var item = new SearchConsumer();
          conn.Open();
          const string cmdText = "SELECT * FROM tblconsumer_account WHERE transformer=@tsf AND accountNumber=@acct";
          var cmd = new MySqlCommand(cmdText, conn);
          cmd.Parameters.AddWithValue("@tsf", transformer);
          cmd.Parameters.AddWithValue("@acct", account);
          var reader = cmd.ExecuteReader();
          while (reader.Read())
          {
  
              item.SearchResult = true;
              item.AccountNumber = reader["accountNumber"].ToString();
              item.TrasformerNumber = reader["transformer"].ToString();
              item.Firstname = reader["firstname"].ToString();
              item.LastName = reader["lastname"].ToString();
              item.Address = reader["address"].ToString();
              item.SerialNumber = reader["serialNumber"].ToString();
              search.Add(item);
          }
      }
      return search.ToList();
  }
  </code></pre>
  
  <p>iam using this <a href="http://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/walkthrough_working_with_WCF/" rel="nofollow">guide</a> as reference, but i have a problem finding properties in my application,like <code>e.Result.Lastname</code>, <code>e.Result.Firstname</code></p>