摘要: 对datatable 里面的数据按某一特定的栏位进行分组并且按照某一规则 var query = from t in rate.AsEnumerable() group t by new { t1 = t.Field<string>("Kind") } into m select new {Kind 阅读全文
posted @ 2016-08-04 16:50 wonderfulviews 阅读(959) 评论(0) 推荐(0) 编辑
摘要: 1.Replace(替换字符):public string Replace(char oldChar,char newChar);在对象中寻找oldChar,如果寻找到,就用newChar将oldChar替换掉。如: string st = "abcdef"; string newstring =  阅读全文
posted @ 2016-08-04 13:47 wonderfulviews 阅读(22612) 评论(2) 推荐(0) 编辑