Ejemplo n.º 1
0
        private static double AverageLettersPerMessage()
        {
            if (MessagesList.Count == 0)
            {
                return(0);
            }
            double avg = MessagesList.Sum(message => message.Text.Length);

            return(Math.Round(avg / MessagesList.Count, 2));
        }