有以下语句,我想找ls_num中'.'的起始位置,就象PB中的pos(string,string)一样的功能using System.Globalization;
String ls_num = '0.021'
CompareInfo.IndexOf(ls_num,'.')系统提示:非静态的字段、方法或属性“System.Globalization.CompareInfo.IndexOf(string,char)”要求对象引用我到底错在那里啊?现在我刚开始看.net还不习惯,请帮助.谢谢