Compare strings with non-English characters?

后端 未结 7 2198
再見小時候
再見小時候 2021-01-19 07:20

I need to compare strings for a search mechanism on a web site. I use C#. I tried two ways:

consultants.Where(x => 
    x.Description.ToLower().Contains(v         


        
7条回答
  •  长情又很酷
    2021-01-19 08:17

    What kind of list are you working on? A plain list or an ORM? use string.Compare() if it's a plain list.

提交回复
热议问题