de></pre>
<h2 id="conversions">Conversions</h2>
<pre><code class="language-csharp">Order[] orders = Orders.Where(order =&gt; order.CustomerId == 66).ToArray();
List&lt;Order&gt; orders = Orders.Where(order =&gt; order.CustomerId == 66).ToList();
HashSet&lt;Order&gt; orders = Orders.Where(order =&gt; order.CustomerId == 66).ToHashSet();
Dictionary&lt;int, string&gt; customerDictionary
     = Customers.ToDictionary(customer =&gt; customer.Id, customer =&gt; customer.Name);
</code></pre>
<h2 id="enumerable-cla