2012年7月25日

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

摘要: 下面的代码第一次indexof返回0,第二次indexof返回1。const string softHyphenPlusHyphen = "\xAD\x2D";Console.WriteLine("softHyphenPlusHyphen.IndexOf(softHyphenPlusHyphen, StringComparison.Ordinal): " + softHyphenPlusHyphe... 阅读全文

posted @ 2012-07-25 15:38 fresky 阅读(1641) 评论(0) 推荐(0) 编辑

导航