日期:2014-05-20 浏览次数:20671 次
string str = "2,18,431,43,0,F;2,30,210,21,0,F;2,20,210,21,0,F;2,4,413,47,0,F;2,22,1,1,0,P;2,23,1,1,0,P;2,24,1,1,0,P;2,25,1,1,0,P;2,26,1,1,0,P;";
var max = str.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).Select(x => Convert.ToInt32(x.Split(',')[1])).Max();
Console.WriteLine(max);