var mainQuery = finaldocCount.GroupBy(u => new { u.ProjectCode })
.Select(grp => new
{
ProjectCode = grp.Key.ProjectCode,
mailList = grp.ToList()
}).ToList();
foreach (var item in mainQuery)
{
foreach (finalNameCount v in item.mailList)
{
v.Name;
}
}
.Select(grp => new
{
ProjectCode = grp.Key.ProjectCode,
mailList = grp.ToList()
}).ToList();
foreach (var item in mainQuery)
{
foreach (finalNameCount v in item.mailList)
{
v.Name;
}
}
No comments:
Post a Comment