I am using lambda expressions to sort and search an array in C#. I don\'t want to implement the IComparer interface in my class, because I need to sort and search on multiple m
if you want to avoid using external libraries, another option for you would be to first filter out the array and object. e.g.
int index = Array.BinarySearch( widgets.Select(x=>x.foo).ToArray(), x.foo)