indexof忽略大小写

indexof忽略大小写,否则基函数出错,取得的位置是-1

str=螺柱 [Th]XBoltLen([Tg]-6+[Tc]+[L]*1.5-2)L

khLeft=boltlen(

int a = str.IndexOf(khLeft, StringComparison.CurrentCultureIgnoreCase) + khLeft.Length - 1;

原文地址:https://www.cnblogs.com/swtool/p/15319137.html