Where has StringComparison.InvariantCultureIgnoreCase gone?
问题 I'm porting C# code to a Windows Store App. To my surprise the following code does not work anymore: someString.Equals("someOtherString", StringComparison.InvariantCultureIgnoreCase) InvariantCulture and InvariantCultureIgnoreCase have been removed(*) from StringComparison . Why? And how do I replace it? Edit: (*) Strictly speaking, it has not been removed , it is merely not available for Windows Store Apps. The result is the same: You cannot use it. 回答1: Those specific options have not gone