// 分号分隔。 public static List <RateItem> ParseList(string strText) { List <RateItem> results = new List <RateItem>(); string[] segments = strText.Split(new char[] { ';' }); foreach (string segment in segments) { if (string.IsNullOrEmpty(segment)) { continue; } string strSegment = segment.Trim(); if (string.IsNullOrEmpty(strSegment)) { continue; } results.Add(RateItem.Parse(strSegment)); } return(results); }