View Single Post
  #4 (permalink)  
Old March 29th, 2009, 05:30 PM
philip_cole philip_cole is offline
Friend of Wrox
Points: 894, Level: 11
Points: 894, Level: 11 Points: 894, Level: 11 Points: 894, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

No it's my fault, your class and import are fine. Sorry, I haven't had a chance to look at lambda expressions and Linq properly as yet, so I am flying a little blind myself.

The OrderBy method expects a Func delegate, so I believe the sortExpression should be declared as
vb Code:
Dim sortExpression As Expression(Of Func(Of T, Object))

There may also be an issue with the AsQueryable parts (maybe my quick reply was a little too hasty), but I can't check properly right now. I'll try and have a look tomorrow morning, unless you or somewhere else can figure it out beforehand...

Phil