Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Average() [9/10]

static double System.Linq.Enumerable.Average ( this IEnumerable< long > source)
inlinestatic

Definition at line 3764 of file Enumerable.cs.

3765 {
3766 if (source == null)
3767 {
3768 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
3769 }
3770 checked
3771 {
3773 if (!enumerator.MoveNext())
3774 {
3775 ThrowHelper.ThrowNoElementsException();
3776 }
3777 long num = enumerator.Current;
3778 long num2 = 1L;
3779 while (enumerator.MoveNext())
3780 {
3781 num += enumerator.Current;
3782 num2++;
3783 }
3784 return (double)num / (double)num2;
3785 }
3786 }

References System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.L, System.Linq.source, System.Linq.ThrowHelper.ThrowArgumentNullException(), and System.Linq.ThrowHelper.ThrowNoElementsException().