Binary Search for a list of objects?
<p>I have a <code>List&lt;Discount&gt;</code> containing around 100000 Discounts Values. Here, Discount is a class, and i have a <code>List&lt;Product&gt;</code> which has around 200000 records .</p>

<p>I have a for each which iterates through all the records of <code>List&lt;Product&gt;</code>.
For each iteration through products list i take some values from the product item and add it to a wrapper class . This wrapper class also contains a field Discount and for each Product i have to iterate through all the discounts got .</p>

<p>There s the problem to iterate through this products list it takes a lot of time.
What is the best way to make this faster ?? </p>

<p>I was thinking of Binary Search but am finding it hard to implement ?</p>

<p>Any suggestion as to how to go about this ?</p>
