Regex.Split

private static List<int> GetThemeIds(string themeList)
{
const string split = "!===!";
return Regex.Split(themeList, split, RegexOptions.IgnoreCase).Select(int.Parse).ToList();
// return themeIds;
}

posted @ 2015-05-12 15:10  晓风拂月  阅读(735)  评论(0编辑  收藏  举报