Expression of type 'System.Int64' cannot be used for return type 'System.Object'
问题 I am trying to create an expression of the following form: e => e.CreationDate; CreationDate is of type long , however I want the expression to return an object instead. I want to use object as a return type because the expression is built dynamically at runtime based on a query paramater. The query parameter specifies the property to access in the expression, such as: > entities?order=creationDate > entities?order=score As you can see, I can order by different properties with different types