摘要:
.GroupBy(x => new { x.Age, x.Sex })group emp by new { emp.Age, emp.Sex } into g// 实现多key分组的扩展函数版本var sums = empList .GroupBy(x => new { x.Age, x.Sex }) .Select(group => new { Peo = group.Key, Count = group.Count() });foreach (var employee in sums) { Console.Write... 阅读全文
摘要:
using (WordprocessingDocument objWordDocument = WordprocessingDocument.Create(@"C:\********.docx", WordprocessingDocumentType.Document)) { MainDocumentPart objMainDocumentPart = objWordDocument.AddMainDocumentPart(); Document objDocument = new Doc... 阅读全文