Removing characters from strings with LINQ

前端 未结 4 1666
失恋的感觉
失恋的感觉 2021-01-17 13:07

I\'m trying to brush up on my LINQ by writing some simple extension methods. Is there any better way to write such a function as below that removes a given list of character

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-17 13:54

    Personally I tend to use the first syntax for non relational situations. When I need to perform relational operations (join), say with Expression Trees against SQL i use the later. But, this is only because its more readable for me having used SQL for a while.

提交回复
热议问题