Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save megatontech/addaa23a9e521ed7300020c9ba4ac474 to your computer and use it in GitHub Desktop.
Save megatontech/addaa23a9e521ed7300020c9ba4ac474 to your computer and use it in GitHub Desktop.
list 内部字段分割求和并排序
tempList.ForEach(x => x.Sort = (Array.ConvertAll<string,int>(x.DayOfStayDays.Split(','),delegate(string s){ return ConvertVal.GetValInt(s); }).Sum()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment