An Update to the Grommet Library

I have added another release to the Grommet Library (an extension to the .NET Micro Framework).

This release adds default comparers to OrderBy and ThenBy to allow the use of the orderby C# keyword.  The code sample from the previous post can now be simplified with the orderby keyword:

var feedsToUpdate = from feed in feedList
                    orderby ((RssFeed)feed).LastUpdate descending, ((RssFeed)feed).Name 
                    where ((RssFeed)feed).LastUpdate > new DateTime(2009, 03, 20)
                    select (((RssFeed)feed).Name);

Also, this release includes a more mature Http/1.1 client, including an example of calling a web service, and the accompanying service.  The Http client was missing the ability to POST which made calling web services impossible.  This is fixed now.

To better test the Linq implementation, I reorganised the unit tests to report when they passed or failed.  There is one open issue with the Linq implementation as it stands now: the SortIterator does not use a stable sort (the order of equivalent items is not maintained in the output).  Let me know if this is a big problem to anyone.

Blair.

Update: I forgot to thank Dave for finding the limitations in the Http client!

posted @ Saturday, April 04, 2009 1:02 AM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345