Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Enumerable.Sum Method

Computes the sum of a sequence of numeric values.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Decimal>) Computes the sum of a sequence of Decimal values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Nullable<Decimal>>) Computes the sum of a sequence of nullable Decimal values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Double>) Computes the sum of a sequence of Double values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Nullable<Double>>) Computes the sum of a sequence of nullable Double values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Int32>) Computes the sum of a sequence of Int32 values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Nullable<Int32>>) Computes the sum of a sequence of nullable Int32 values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Int64>) Computes the sum of a sequence of Int64 values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Nullable<Int64>>) Computes the sum of a sequence of nullable Int64 values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Nullable<Single>>) Computes the sum of a sequence of nullable Single values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum(IEnumerable<Single>) Computes the sum of a sequence of Single values.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Decimal>) Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Double>) Computes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Int32>) Computes the sum of the sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Int64>) Computes the sum of the sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Decimal>>) Computes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Double>>) Computes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int32>>) Computes the sum of the sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Int64>>) Computes the sum of the sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Nullable<Single>>) Computes the sum of the sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Sum<TSource>(IEnumerable<TSource>, Func<TSource, Single>) Computes the sum of the sequence of Single values that are obtained by invoking a transform function on each element of the input sequence.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft