Lambda and Expression.Call for an extension method

前端 未结 5 942
野趣味
野趣味 2021-01-17 23:08

I need to implement an expression for a method like here:

var prop = Expression.Property(someItem, \"Name\"); 
var value = Expression.Constant(someConstant);         


        
5条回答
  •  清歌不尽
    2021-01-17 23:46

    If you want to get your extension method worked you must do like this:

    string str = "some string";
    str.Like("second string");
    

提交回复
热议问题