다음을 통해 공유


Queryable.Sum Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Decimal>) Computes the sum of a sequence of Decimal values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Nullable<Decimal>>) Computes the sum of a sequence of nullable Decimal values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Double>) Computes the sum of a sequence of Double values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Nullable<Double>>) Computes the sum of a sequence of nullable Double values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Int32>) Computes the sum of a sequence of Int32 values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Nullable<Int32>>) Computes the sum of a sequence of nullable Int32 values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Int64>) Computes the sum of a sequence of Int64 values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Nullable<Int64>>) Computes the sum of a sequence of nullable Int64 values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Nullable<Single>>) Computes the sum of a sequence of nullable Single values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum(IQueryable<Single>) Computes the sum of a sequence of Single values.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Decimal>>) Computes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Double>>) Computes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Int32>>) Computes the sum of the sequence of Int32 values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Int64>>) Computes the sum of the sequence of Int64 values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Nullable<Decimal>>>) Computes the sum of the sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Nullable<Double>>>) Computes the sum of the sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Nullable<Int32>>>) Computes the sum of the sequence of nullable Int32 values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Nullable<Int64>>>) Computes the sum of the sequence of nullable Int64 values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Nullable<Single>>>) Computes the sum of the sequence of nullable Single values that is obtained by invoking a projection function on each element of the input sequence.
Public methodStatic memberSupported by Silverlight for Windows Phone Sum<TSource>(IQueryable<TSource>, Expression<Func<TSource, Single>>) Computes the sum of the sequence of Single values that is obtained by invoking a projection function on each element of the input sequence.

Top