newtelligence.DasBlog.Runtime.DayExtra.GetCommentsFor C# (CSharp) Méthode

GetCommentsFor() private méthode

private GetCommentsFor ( string entryId, DataManager data ) : CommentCollection
entryId string
data DataManager
Résultat CommentCollection
        internal CommentCollection GetCommentsFor(string entryId, DataManager data)
        {
            Load(data);
            CommentCollection filtered = new CommentCollection();

            foreach (Comment c in Comments)
            {
                if (c.TargetEntryId.ToUpper() == entryId.ToUpper())
                {
                    filtered.Add(c);
                }
            }
            return filtered;
        }