How to create an Expression tree to do the same as “StartsWith”

前端 未结 2 1125
青春惊慌失措
青春惊慌失措 2021-01-02 04:04

Currently, I have this method to compare two numbers

Private Function ETForGreaterThan(ByVal query As IQueryable(Of T), ByVal propertyValue As Object, ByVal          


        
2条回答
  •  失恋的感觉
    2021-01-02 04:46

    It's not an operator, but a method, so you can call it with Expression.Call(), where the methodinfo parameter will be typeof(string).GetMethod("StartsWith").

提交回复
热议问题