title: Basic array Any() vs Length
body: <p>I have a simple array of objects:</p>
  
  <pre><code>Contact[] contacts = _contactService.GetAllContacts();
  </code></pre>
  
  <p>I want to test if that method returns <em>any</em> contacts. I really like the LINQ syntax for <code>Any()</code> as it highlights what I am trying to achieve:</p>
  
  <pre><code>if(!contacts.Any()) return;
  </code></pre>
  
  <p>However, is this slower than just testing the length of the array?</p>
  
  <pre><code>if(contacts.Length == 0) return;
  </code></pre>
  
  <p>Is there any way I can find out what kind of operation <code>Any()</code> performs in this instance without having to go to here to ask? Something like a Profiler, but for in-memory collections?</p>