LINQ Expression Conversion / Concat from Int to string

后端 未结 4 392
南方客
南方客 2020-12-19 07:33

I want to Concat two expressions for the final expression

Expression>

So I have created expression belwo code

4条回答
  •  醉梦人生
    2020-12-19 08:03

    Rather than calling string.Concat(string, string), you could try calling string.Concat(object, object):

    MethodInfo bodyContactMethod = typeof (string).GetMethod("Concat", 
       new[] { typeof(object), typeof(object) });
    

提交回复
热议问题