I would to get "comment" by article ID . and i only can to get all comment in all article. my plan is make LINQ code in my code
please check my code
var childrenss = new List<Sitecore.Data.Items.Item>();
foreach (var child in item.GetChildren())
{
childrenss.Add((Sitecore.Data.Items.Item)child);
}
any advice is appreciated. Thanks.
Well it looks like you should be able to use:
using System.Linq;
...
var children = item.GetChildren().ToList();
See more on this question at Stackoverflow