View Single Post
  #3 (permalink)  
Old March 29th, 2009, 02:05 PM
realkewl realkewl is offline
Authorized User
 
Join Date: Mar 2009
Posts: 27
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sweet, thanks for the quick reply and the link. I tried the code and I get an error on this line:

Code:
 
sortExpression = Expression.Lambda(Of Func(Of T, Object))(body, param)
Error message:
cannot be converted to system.linq.expressions.expression(Of T)

Here's the class declaration and my imports maybe that's not correct:

Code:
 
imports System
Imports System.Collections.Generic
Imports System.Linq.Expressions
Imports System.Data.Linq
 
<Serializable()> _
Public MustInherit Class ENTBaseBOList(Of T As ENTBaseBO)
Inherits List(Of T)
-realkewl