Exemplo n.º 1
0
        public bool CalcRating(out long r)
        {
            if ((Subscribers != null) && (Documents != null))
            {
                long rr = Subscribers.Count();
                Documents.ForEach(d => {
                    long dr = 0;
                    if (d.CalcRating(out dr))
                    {
                        d.Rating = dr;
                    }

                    rr += d.Rating; });
                r = rr;
                return true;
            }
            r = 0;
            return false;
        }