C# string.indexof(string)返回1!!!

下面的代碼第一次indexof返回0,第二次indexof返回1。 const string softHyphenPlusHyphen = "\xAD\x2D"; Console.WriteLine("softHyphenPlusHyphen.IndexOf(softHyphenPlusHyphen, StringComparison.Ordinal): " + softHyphenPlusHyp
相關文章
相關標籤/搜索