Пример #1
0
        private int?GetMajorityAnnotation()
        {
            var annotationsGroupedBySeverity = Annotations.GroupBy(a => a.Severity);

            if (HasMajoritySeverityVote(annotationsGroupedBySeverity))
            {
                return(annotationsGroupedBySeverity
                       .OrderByDescending(a => a.Count())
                       .First().Key);
            }
            return(null);
        }