title: Find out the names of all the attributes in an entity returned from CRM Dynamics
body: <p>I got myself into the server and I have retrieved (hopefully) the correct set of data. Then, I tried to list all the companies by the following code.</p>
  
  <pre><code>EntityCollection result = proxy.RetrieveMultiple(expression);
  foreach (var entity in result.Entities)
  {
    String output = String.Empty;
    if (entity.Attributes.Contains("account"))
      output = entity.Attributes["account"].ToString();
  }
  </code></pre>
  
  <p>However, it'd be nice to run an inner loop that goes through all the available attributes in <code>result.Entities</code>. Should I use <code>entity.Attributes.Keys</code> or is there a better method?</p>