Where has StringComparison.InvariantCultureIgnoreCase gone?

后端 未结 2 718
Happy的楠姐
Happy的楠姐 2021-02-18 17:17

I\'m porting C# code to a Windows Store App. To my surprise the following code does not work anymore:

someString.Equals(\"someOtherString\", StringComparison.Inv         


        
2条回答
  •  广开言路
    2021-02-18 18:16

    It looks like it doesn't support Windows Store App.

    For Windows Store App, only avaiable you can use with green bag enumerations;

    enter image description here

    For general idea, people used OrdinalIgnoreCase in this case.

    https://github.com/loqu8/sqlite-net/commit/bfa04a6a40b4f62000bb9c57d5517643404c9109

提交回复
热议问题