Include MoreLinq Library for LINQ extensions

Last week I needed to find an object from collection with maximum value of the property and wrote the following

double maxHours = (from loc in locations select loc.TotalHours).Max();
var location = (from loc in locations where (loc.TotalHours == maxHours) select loc).FirstOrDefault();
but wasn’t happy and checked the internet.
The answer in http://stackoverflow.com/questions/914109/how-to-use-linq-to-select-object-with-minimum-or-maximum-property-value/914198#914198  referred to
http://code.google.com/p/morelinq/
I’ve  downloaded the DLL and  tried to reference ‘MoreLinq’  from signed DLL,but got Error    609    Assembly generation failed — Referenced assembly ‘MoreLinq’ does not have a strong name.
The issue 30 Make the assembly strong named http://code.google.com/p/morelinq/issues/detail?id=30&can=1 marked as fixed in 2010, but downloads are still old 2009

I decided to download  source code, but I do not have experience with SVN and instructions on  http://code.google.com/p/morelinq/source/checkout  were confusing for me.
It seems that  In SVN “anonymously check out” has a meaning “Get Latest” in TFS/SourceSafe terms.
Fortunately I was able to install http://www.sliksvn.com/en/download and created a batch to get source, which includes certificate key

GetSRCMoreLinq.BAT:
@rem from http://code.google.com/p/morelinq/source/checkout
@rem Use this command to anonymously check out the latest project source code:
cd C:Program FilesSlikSvnbin
@rem # Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://morelinq.googlecode.com/svn/trunk/ C:MoreLinqSrc
@pause

Advertisements