Dynamic Linq & ICompare
问题 I'm trying to make use of James McCormack's guide to using a custom IComparer with Dynamic Linq. - see http://zootfroot.blogspot.co.uk/2009/10/dynamic-linq-orderby.html?showComment=1347276236930#c11348033278810583 I use a query to pull back an Enumerable of string values: .Select("fieldname").Distinct() Then try to use .OrderBy(item=>item.GetReflectedPropertyValue("fieldname"),new myComparer()) GetReflectedPropertyValue is a helper method defined by James as public static string