C Sharp (C#) - LINQ Fundamentals
Why might using Average() on an empty list cause an error in C#?
Why might using Average() on an empty list cause an error in C#?
Average() on an empty list causes an InvalidOperationException because there are no elements to average.Sum() returns 0 on empty lists, but Average() throws an error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions